SQUATS - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: Prakhar Agarwal
Testers: Hriday, Utkarsh Gupta
Editorialist: Nishank Suresh

DIFFICULTY:

249

PREREQUISITES:

None

PROBLEM:

Somu did X sets of 15 squats each. How many squats did he do?

EXPLANATION:

Since each set consists of 15 squats and there are X sets, the total number of squats is 15\cdot X.

TIME COMPLEXITY

\mathcal{O}(1) per test case.

CODE:

Editorialist's code (Python)
for _ in range(int(input())):
    print(15*int(input()))