GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday 5 October 2022

[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 3 categories as X, Y, and Z respectively (where all three integers are distinct), find if the user has been most active as a SetterTester, or Editorialist.

Input Format

  • The first line of input will contain a single integer T, denoting the number of test cases.
  • Each test case consists of three space-separated integers X, Y, and Z - 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.

Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

Note that the output is case-insensitive. Thus, the strings SETTERsetterseTTer, and Setter are all considered the same.

Explanation:

Test case 1: 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 2: 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 3: 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 4: 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