CHILLAR
CodeChefOpen on judge ↗
The Indian bank issues coins in 4 denominations, ₹1, ₹2, ₹5 and ₹10. Given a limited supply of each of the above denominations, in how many ways can you sum them up to a total of ₹N? ###Input: The first line contains an integer T (number of testcases). Each testcase contains 2 lines. The first line contains integer N (sum to be achieved) A, B, C and D in the next line, each representing the
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