Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Yubin Lee 2019
- # NDU Math Competition 2018; number of possibilites of 10 balls in 4 urns
- successful = 0
- for a in range(0,11):
- for b in range(0,11):
- for c in range(0,11):
- for d in range(0,11):
- if a + b + c + d == 10:
- print(a, b, c, d)
- successful += 1
- print(successful)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement