SHARE
TWEET

Untitled

a guest Dec 6th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def C(n, k):
  2.     if n == k or k == 0:
  3.         return 1
  4.     if k == 1:
  5.         return n
  6.  
  7.     return C(n - 1, k - 1) + C(n - 1, k)
  8.  
  9. n = int(input())
  10. k = int(input())
  11. print(C(n, k))
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