GUPTA MECHANICAL

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

Wednesday 8 June 2022

[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 X (i.e. Age should be greater than or equal to X).
  • Age should be strictly less than Y.

Chef's current Age is A. Find whether he is currently eligible to take the exam or not.

Solution Click Below:-  CLICK HERE


Input Format

  • First line will contain T, number of test cases. Then the test cases follow.
  • Each test case consists of a single line of input, containing three integers X,Y, and A 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 YESyEsyes, and yeS will all be treated as identical).

Constraints

  • 1T1000
  • 20X<Y40

No comments:

Post a Comment