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 works out for two days and rests for one.
Today’s the N-th rest day. How many days has Chef been following his plan?
EXPLANATION:
Each rest day follows two exercise days, so that’s three days in total.
N rest days thus means 3N days in total have passed.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (PyPy3)
n = int(input())
print(3*n)