SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top