← All problemsSign in

Bob and his strict mom

Bob's mom is strict. She wants Bob to study for the upcoming university entrance exam. Bob has only $N$ days left to study. So she asks Bob to make a schedule. Bob being the obedient son he is, comes up with a schedule quickly. But his mother isn't satisfied with the schedule. According to her, at the end of the $i^{th}$ day $(1 \leq i \leq N)$, the number of days on which Bob has studied till n

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