PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: iceknight1093
Testers: wuhudsm, satyam_343
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
Chef has X minutes of time before an exam, and wants to watch an episode that’s 24 minutes long. Can he finish it?
EXPLANATION:
As per the problem statement, the answer is Yes
if X \gt 24 and No
otherwise.
This can be checked using a conditional statement.
TIME COMPLEXITY
\mathcal{O}(1) per test case.
CODE:
Editorialist's code (Python)
for _ in range(int(input())):
x = int(input())
print('Yes' if x > 24 else 'No')