Exercise and Rest
Chef is on a new exercise plan: he'll work out for two days, then take one rest day, and then repeat. Today is Chef's $N$-th rest day. How many days (including today) has it been since Chef started his plan? ### Input - The only line of input contains a single integer $N$. ### Output Output a single integer: the number of days that have passed since Chef started his exercise plan. ### Constrai
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start