Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Yubin Lee 2019
  2. # NDU Math Competition 2018; number of possibilites of 10 balls in 4 urns
  3.  
  4. successful = 0
  5.  
  6. for a in range(0,11):
  7. for b in range(0,11):
  8. for c in range(0,11):
  9. for d in range(0,11):
  10. if a + b + c + d == 10:
  11. print(a, b, c, d)
  12. successful += 1
  13.  
  14. print(successful)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement