Passing Marks Codechef Starters 78 (Rated till 6 stars) problem solution
This post is all about the solution of the Passing Marks Codechef Starters 78 (Rated till 6 stars) problem solution.
Problem Statement:
A class test was given to a class of N students. The student received points. It is also known that all students' scores were distinct.
If a student's score is strictly larger than the passing mark, they pass the test. Determine the highest possible value of the test's passing mark if exactly X students pass the test.
Format of Input :
The number of cases will be indicated by a single integer TT in the first line of input.
Each test case's first and only line includes 2 space-separated integers NN and MM — the number of apples and oranges, respectively.
Format of the Output :
For every test case, output YES if the group is perfect and NO or else on a new line.
Each character can be printed in either uppercase or lowercase. The strings YES, yes, Yes, and yES, for example, are all considered identical.
0 Comments