← All problemsSign in

The Robin

Barney is a rich lad who lives in an awesome place called Puzzles. Barney likes to show off his wealth by carrying a fully stuffed wallet. But the truth is, he only carries 10 rupee notes to make his wallet look big. One day he goes on a coffee with his crush Robin. While trying to impress her, he decided to make the full payment himself. He tried to pay the entire bill with those 10 rupee notes.

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