CodechefAug 16, 2025

Just One More Episode

Hazrat Ali

Codechef

Every episode of the show that Chef is watching, is 24 minutes long.
If he starts watching a new episode now, will he finish watching it strictly before the exam starts?

Input Format

  • The first line of input will contain a single integer T, denoting the number of test cases.
  • Each test case consists of one line of input, containing a single integer X — the amount of time from now at which Chef's exam starts.

Output Format

For each test case, output on a new line the answer — YES if Chef will finish his episode before the exam starts, and NO otherwise.

Each character of the output may be printed in either lowercase or uppercase, i.e, the string YesYESyes, YeS` will all be treated as equivalent.

Constraints

  • 1≤T≤100
  • 1≤X≤100

Sample 1:

Input
4
30
23
60
24
Output
 
Yes
No
Yes
No

Solution
T = int(input())

for _ in range(T):
    X = int(input())
    if X > 24:
        print("YES")
    else:
        print("NO")




Comments