← All problemsSign in

Watches

Draco has 'N' empty watches whose batteries have been used up. Draco has 'R' rupees in his pocket. Draco has two choices of operations that Draco can perform each time. 1) Recycle 1 empty watch and get 'K' rupees as a reward. 2) Buy 1 battery for 'C' rupees and combine it with 1 empty watch to make one usable watch. Draco is busy finding spells to win a game against Harry. So he has assigned this

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