Bonus
CodeChefOpen on judge ↗
As a reward for record milk production, Farmer John has decided to start paying Mr. Robert a small weekly allowance. FJ has a set of coins in N (1 Using the given set of coins, he would like to pay Mr. Robert at least some given amount of money C (1 INPUT FORMAT: * Line 1: Two space-separated integers: N and C * Lines 2..N+1: Each line corresponds to a denomination of coin and contains 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.
Sign in to chat with the tutor and save your progress.
Sign in to start