← All problemsSign in

Maya’s Blog Query

Maya published a blog post and is now receiving many queries about it. On the day I, he receives $Qi$ queries. But she can only answer atmost $m$ queries in a single day. Maya always answers the maximum number of questions that she can on any given day (however this cannot be more than $m$). The remaining questions (if any) will be carried over to the next day. Fortunately, after $n$ days, the qu

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