← All problemsSign in

Third Wave

The third wave of करोना is approaching. In the second wave, Yogesh was a little careless and has suffered. Now, he doesn’t want to take any risk. He decided to use 2 masks at a time, wearing one over the other. To further reduce the risk, he uses a set of masks not more than one day. Find the number of masks he will need in $N$ days. ### Input - First line will contain $T$, number of testcases

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start