WRITINGSPEED - Editorial

PROBLEM LINK:

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

Author: sezalmittal987
Tester: mexomerf
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Chef requires X minutes to write one page.
Can he complete a 5-page assignment in 60 minutes?

EXPLANATION:

Chef takes X minutes to write one page, so he needs 5X minutes to write 5 pages.
The answer is hence Yes if 5X \leq 60 and No otherwise.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
x = int(input())
print('Yes' if 5*x <= 60 else 'No')