Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. 110 //sum
  2. 4 //number of bags
  3. 5 5 5 5 //number of coins of each denomination
  4. 1 5 10 50 //denominations
  5.  
  6. //So we basically have 4 bags
  7. //Bag 1 has 5 coins of value 1
  8. //Bag 2 has 5 coins of value 5
  9. //Bag 3 has 5 coins of value 10
  10. //Bag 4 has 5 coins of value 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement