← All problemsSign in

MONEY IN THE POT

In a different world, the people there store the money in pots. They put their money in the pot at random whenever money comes to their hand. They don't know exactly how much money they put into the pot every time. So that, whenever they need the money, they just break the pot. But they don't know whether the amount of money in the pot will be sufficient for their need every time. That's why you

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