Lukas and ATM
CodeChefOpen on judge ↗
Lukas has L dollars in his bank account. He has decided to go an ATM and withdraw all L dollars from his account as he wants to buy a gift for his girlfriend. The ATM machine gives Lukas a list of n denominations in which he can withdraw money. Lukas has decided to withdraw atleast 1 currency note of each of the n denominations. Lukas is not sure about the exact price of the gift which he will bu
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