PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: iceknight1093
Tester: satyam_343
Editorialist: iceknight1093
DIFFICULTY:
279
PREREQUISITES:
None
PROBLEM:
Can Chef’s team of N people participate in a puzzle hunt, whose teams must be between sizes 6 and 8?
EXPLANATION:
As per the statement, the answer is Yes
if N \geq 6 and N \leq 8, and No
otherwise.
Both checks can be done using if
conditions.
TIME COMPLEXITY
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
n = int(input())
print('Yes' if 6 <= n <= 8 else 'No')