PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: iceknight1093
Tester: sushil2006
Editorialist: iceknight1093
DIFFICULTY:
Cakewalk
PREREQUISITES:
None
PROBLEM:
Chef will do X push-ups every day in January.
January has 31 days.
How many push-ups will Chef do?
EXPLANATION:
X push-ups every day for 31 days gives a total of 31\cdot X push-ups.
Thus, the answer is
31\cdot X
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (PyPy3)
x = int(input())
print(31*x)