TIMELY - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: Jeevan Jyot Singh
Testers: Tejas Pandey, Hriday
Editorialist: Nishank Suresh

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Chef needs 30 minutes to reach his office from home. He left with X minutes left. Will Chef reach on time?

EXPLANATION:

Chef needs at least 30 minutes of time to reach the office. Thus, the answer is “Yes” if X \geq 30 and “No” otherwise. This can be checked using an if condition.

TIME COMPLEXITY

\mathcal{O}(1) per test case.

CODE:

Editorialist's code (Python)
for _ in range(int(input())):
    print('Yes' if int(input()) >= 30 else 'No')