PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: pols_agyi_pols
Tester: tabr
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
The maximum allowed speed is 40 km/hr.
Alice is driving at X km/hr. Will she be fined?
EXPLANATION:
Alice will be fined if and only if X\gt 40, i.e, the speed limit is exceeded.
This can be checked using an if
condition.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
s = int(input())
print('Yes' if s > 40 else 'No')