GUPTA MECHANICAL

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

Wednesday, 29 June 2022

[Solution] Best of Two CodeChef Solution


Chef took an examination two times. In the first attempt, he scored X marks while in the second attempt he scored Y marks. According to the rules of the examination, the best score out of the two attempts will be considered as the final score.

Determine the final score of the Chef.

Input Format

  • The first line contains a single integer T — the number of test cases. Then the test cases follow.
Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

  • The first line of each test case contains two integers X and Y — the marks scored by Chef in the first attempt and second attempt respectively.

Output Format

For each test case, output the final score of Chef in the examination.

Best of Two CodeChef Solution

Chef and his Apps CodeChef Solution

Change Row and Column Both CodeChef Solution

Adjacent Sum Parity CodeChef Solution

Retrieve the Array CodeChef Solution

Even Equal Odd CodeChef Solution

Xor and Multiply CodeChef Solution

KBG and GN-Theory CodeChef Solution

Constraints

  • 1T1000

No comments:

Post a Comment