restructure zeta/** to storage/zeta/**
This commit is contained in:
13
storage/zeta/py/completed/11050.py
Normal file
13
storage/zeta/py/completed/11050.py
Normal file
@@ -0,0 +1,13 @@
|
||||
N, K = map(int, input().split())
|
||||
|
||||
|
||||
def C(n, k):
|
||||
if n == 1:
|
||||
return 1
|
||||
elif k == 0 or k == n:
|
||||
return 1
|
||||
else:
|
||||
return C(n - 1, k) + C(n - 1, k - 1)
|
||||
|
||||
|
||||
print(C(N, K))
|
||||
Reference in New Issue
Block a user