[Solution] Lunchtime solution codechef

Lunchtime solution codechef – Chef has his lunch only between 11 pm and 44 pm (both inclusive).

Given that the current time is XX pm, find out whether it is lunchtime for Chef.

[Solution] Lunchtime solution codechef

  • The first line of input will contain a single integer TT, the number of test cases. Then the test cases follow.
  • Each test case contains a single line of input, containing one integer XX.

Output Format

For each test case, print in a single line 𝚈𝙴𝚂YES if it is lunchtime for Chef. Otherwise, print 𝙽𝙾NO.

You may print each character of the string in either uppercase or lowercase (for example, the strings 𝚈𝚎𝚂YeS𝚢𝙴𝚜yEs𝚢𝚎𝚜yes and 𝚈𝙴𝚂YES will all be treated as identical).


  • 1T121≤T≤12
  • 1X121≤X≤12

[Solution] Lunchtime solution codechef



Sample Output 1 


Lunchtime solution Explanation

Test case 11: Lunchtime is between 11 pm and 44 pm (both inclusive). Since 11 pm lies within lunchtime, the answer is 𝚈𝙴𝚂YES.

Test case 22: Lunchtime is between 11 pm and 44 pm (both inclusive). Since 77 pm lies outside lunchtime, the answer is 𝙽𝙾NO.

Test case 33: Lunchtime is between 11 pm and 44 pm (both inclusive). Since 33 pm lies within lunchtime, the answer is 𝚈𝙴𝚂YES.

Leave a Comment