PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: Utkarsh Gupta
Testers: Nishank Suresh, Nishant Shah
Editorialist: Nishank Suresh
DIFFICULTY:
435
PREREQUISITES:
None
PROBLEM:
How many submissions can a participant make in X minutes, if they can make 1 submission every 30 seconds?
EXPLANATION:
Every minute is 60 seconds, so there are 60\cdot X seconds in total.
Since one submission can be made every 30 seconds, a total of 60\cdot X / 30 = 2\cdot X submissions can be made.
Thus, the solution is to read X and print 2\cdot X.
TIME COMPLEXITY:
\mathcal{O}(1) per test case.
CODE:
Editorialist's Code (Python)
for _ in range(int(input())):
print(2*int(input()))