PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: abhi_inav
Testers: tabr, iceknight1093
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
Chef is now 20 years old, and Chefina is 10.
When Chef is X years old, how old will Chefina be?
EXPLANATION:
Chefina is 10 years younger than Chef.
So, when Chef is X years old, Chefina will be X-10 years old.
TIME COMPLEXITY
\mathcal{O}(1) per test case.
CODE:
Editorialist's code (Python)
for _ in range(int(input())):
x = int(input())
print(x - 10)