Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 110 //sum
- 4 //number of bags
- 5 5 5 5 //number of coins of each denomination
- 1 5 10 50 //denominations
- //So we basically have 4 bags
- //Bag 1 has 5 coins of value 1
- //Bag 2 has 5 coins of value 5
- //Bag 3 has 5 coins of value 10
- //Bag 4 has 5 coins of value 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement