csc-python-solutions/15/b/4 - Be Choosy.py
2021-02-22 11:39:56 +01:00

8 lines
104 B
Python

def choose(n, k):
res = n/k
while k > 1:
n -= 1
k -= 1
res *= n/k
return res