PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: satyam_343
Tester: tabr
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
You’re given an integer X. Print "Thala"
if it equals 7 and "Sadge"
otherwise.
EXPLANATION:
Do exactly what is asked for: read the given integer, then print "Thala"
if it equals 7 and "Sadge"
otherwise.
This check can be done using an if
condition.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
x = int(input())
print('THALA' if x == 7 else 'SADGE')