SUNNYDAY - Editorial

PROBLEM LINK:

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

Author: notsoloud
Tester: yash_daga
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

The temperature is X degrees. Chef will go on a picnic if and only if the temperature is at least 24 degrees.
Will Chef go on a picnic?

EXPLANATION:

As per the 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 testcase.

CODE:

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