Files
CodeObject/zeta_python/completed/11050.py
2020-09-26 13:30:10 +09:00

14 lines
196 B
Python

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))