[Solution] Email Reminders solution codechef

Email Reminders solution codechef – MoEngage noticed that some users are not aware of the practice page on CodeChef, and some others are not aware of the rated contests on CodeChef. So, MoEngage wants to send an email to the users depending on which of the following groups they fall into:

  1. If the user has never submitted on the practice page then send an email with the text:

    https://www.codechef.com/practice

  2. If the user has submitted on the practice page, but never participated in a contest then send an email with the text:

    https://www.codechef.com/contests

  3. If the user has submitted on the practice page as well as participated in a contest then send an email with the text:

    https://discuss.codechef.com

    so that they may discuss with other members of the community.

Email Reminders solution codechef

Help MoEngage by writing a program that takes as input two integers AA and BB where:

  • A=1A=1 if the user has submitted on the practice page and 00 otherwise.
  • B=1B=1 if the user has participated in a contest and 00 otherwise.

Output the appropriate link to be displayed in the email.

Input Format

  • The input consists of a single line with two space-separated integers AA and BB.

Output Email Reminders solution codechef

  • Print one of the following strings as per the problem statement.
    • https://www.codechef.com/practice
    • https://www.codechef.com/contests
    • https://discuss.codechef.com

Constraints

  • AA is either 00 or 11.
  • BB is either 00 or 11.

Sample Input 1 

0 1

Email Reminders solution codechef

 

https://www.codechef.com/practice

Explanation

The user has not submitted on the practice page, so the program must output the link to the practice page.

Sample Input 2 

1 0

Email Reminders solution codechef

 

https://www.codechef.com/contests

Explanation

The user has submitted on the practice page, but has not participated in a contest, so the program must output the link to the contest page.

For Solution

Click here

Leave a Comment