Currency trouble
CodeChefOpen on judge ↗
The mayor of Bilaspur Mr. Lionheart has a plan for the residents of Bilaspur. He wants to introduce two types of currency notes A and B. But there is a problem as it might not be possible to make change for every possible sum of money by using these notes only. In those cases the citizens will have to opt for digital payment. The mayor plans this exrcise as an attempt to familiarize the citize
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