← All problemsSign in

After Party Effects!

After getting placed you went to a party, after the party you got very HIGH. So out of fun you collected all the N (numbered 0 to N-1) dustbins of your hostel and kept them in front of your room. You also bought infinite number of balls, Then initially you added some balls in each dustbin. Now being really high you started these three tasks 1) You can empty the whole dustbin(D). 2) You can add M

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