P1169 - Editorial

PROBLEM LINK:

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

Author: pols_agyi_pols
Tester: kingmessi
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

Chef’s age is X, and he needs to be at least 10 years old to get into a fair.
Can he get in?

EXPLANATION:

The answer is Yes if X \geq 10 and No otherwise.
This can be checked using an if condition.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
x = int(input())
print('Yes' if x >= 10 else 'No')