← All problemsSign in

Hungry Mushak

Each day, during the sacred Aarti hours, Bappa and his pet mushak visit a sweet shop. They want to buy ladoos to feed the hungry mushak. The shop offers discounts during Aarti hours. Can you find the lowest cost for their treat? Bappa loves ladoos, and he has a pet mushak that gets hungry every hour, currently mushak has a hunger level of $l$. The mushak's hunger increases by $i$ units per hour.

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