Srinivas And His Monetary Problems
CodeChefOpen on judge ↗
Srinivas recently opened up a new bank. As he is the only employee, he has to deal with the customers himself and also handle all the money that is being deposited. Srinivas has 'notes-o-phobia'. Hence, the depositors are required to submit the money in the least possible number of notes. Write a program to print the least number of notes of each denomination required. Consider a currency system
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.
Sign in to chat with the tutor and save your progress.
Sign in to start