← All problemsSign in

Lucky Bank

Lucky bank is very famous for it's schemes. Each year the Manager of the Lucky bank comes up with a new scheme. There are N customers each having a locker in the Lucky bank, i th customer has a locker with locker number i. Initially there was no money in their lockers. It has been one year since Lucky bank is established. Yes, today is it's anniversary. So, The Manager of the bank wants to make t

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