PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: mehul_g2874
Tester: apoorv_me
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
You’re given N, the date on which Mehul visits Ropar.
IIT Ropar’s tech fest, Advitiya, runs from the 16-th to the 18-th.
Will Mehul be able to attend it?
EXPLANATION:
Mehul can attend the fest if N is 16, 17, or 18.
Checking this can be done with an if
condition.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
n = int(input())
if n < 16: print('Waiting for', end = ' ')
print('Advitiya')