← All problemsSign in

Thieves

Every evening, hundreds of students gather up at canteen and buy various snacks. Many of these students prefer to pay through E-Wallets and UPI methods such as PayTM, PhonePe and Google Pay etc. Due to the rush, the owner can't keep track of all payments and verify if a student has actually made the payment or not. But the canteen owner has visual memory i.e. he can remember a few digits of ph

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