PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: kingmessi
Tester: kingmessi
Editorialist: iceknight1093
DIFFICULTY:
Cakewalk
PREREQUISITES:
None
PROBLEM:
Chef will cheer "THALA" if at least 7 runs are scored in an over, and "BOOM" otherwise.
Given the number of runs scored in this over, X, which will Chef cheer?
EXPLANATION:
The answer is THALA if X \geq 7 and BOOM otherwise.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (PyPy3)
x = int(input())
print('THALA' if x >= 7 else 'BOOM')