[Solution] Age Limit Codechef Solution
Chef wants to appear in a competitive exam. To take the exam, there are following requirements:
- Minimum age limit is (i.e. Age should be greater than or equal to ).
- Age should be strictly less than .
Chef's current Age is . Find whether he is currently eligible to take the exam or not.
Solution Click Below:- CLICK HERE
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing three integers and as
- mentioned in the statement.
Output Format
For each test case, output YES
if Chef is eligible to give the exam, NO
otherwise.
You may print each character of the string in uppercase or lowercase (for example, the strings YES
, yEs
, yes
, and yeS
will all be treated as identical).
No comments:
Post a Comment