[Solution] Rating Improvement CodeChef Solution | CodeChef Problem Solution 2022
Chef's current rating is , and he wants to improve it. It is generally recommended that a person with rating should solve problems whose difficulty lies in the range , i.e, problems whose difficulty is at least and at most .
You find out that Chef is currently solving problems with a difficulty of .
Is Chef following the recommended practice or not?
Input Format
- The first line of input will contain a single integer , denoting
Solution Click Below:- CLICK HERE
- the number of test cases. The description of the test cases follows.
- Each test case consists of a single line of input, containing two space-separated integers .
Output Format
For each test case, output on a new line YES
if Chef is following the recommended practice style, and NO
otherwise.
Each letter of the output may be printed in either lowercase or uppercase. For example, the strings YES
, yEs
, and Yes
will be considered identical.
No comments:
Post a Comment