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:
If the user has never submitted on the practice page then send an email with the text:
https://www.codechef.com/practice
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
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.
Help MoEngage by writing a program that takes as input two integers and where:
- if the user has submitted on the practice page and otherwise.
- if the user has participated in a contest and 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 and .
Output Format
- 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
- is either or .
- is either or .
Sample Input 1
0 1
Sample Output 1
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
Sample Output 2
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.
No comments:
Post a Comment