PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: raysh07
Tester: tabr
Editorialist: iceknight1093
DIFFICULTY:
Cakewalk
PREREQUISITES:
None
PROBLEM:
IOI 2024 is being held from the 1-st to the 8-th of September.
Given that today’s date is September X, decide whether IOI is ongoing.
EXPLANATION:
Print Yes
if 1 \leq X \leq 8 and No
otherwise.
This can be checked using two if
conditions.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
x = int(input())
print('Yes' if 1 <= x <= 8 else 'No')