[Solution] Speciality CodeChef Solution | Solution CodeChef
Problem
On every CodeChef user's profile page, the list of problems that they have set, tested, and written editorials for, is listed at the bottom.
Given the number of problems in each of these categories as and respectively (where all three integers are distinct), find if the user has been most active as a Setter
, Tester
, or Editorialist
.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of three space-separated integers and - the number of problems they have set, tested, and written editorials for.
Output Format
For each test case, output in a new line:
Setter
, if the user has been most active as a setter.Tester
, if the user has been most active as a tester.Editorialist
, if the user has been most active as an editorialist.
Note that the output is case-insensitive. Thus, the strings SETTER
, setter
, seTTer
, and Setter
are all considered the same.
Explanation:
Test case : The number of problems that the user has set is greater than the number of problems tested or written editorials for. Thus, the user is most active as setter.
Test case : The number of problems that the user has written editorials for, is greater than the number of problems set or tested. Thus, the user is most active as editorialist.
Test case : The number of problems that the user has tested is greater than the number of problems set or written editorials for. Thus, the user is most active as tester.
Test case : The number of problems that the user has set is greater than the number of problems tested or written editorials for. Thus, the user is most active as setter.
No comments:
Post a Comment