Все задачи на 5.10.17 13:00
This commit is contained in:
9
uts/uts_2k17_march_py/Dun/A.py
Normal file
9
uts/uts_2k17_march_py/Dun/A.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import sys
|
||||
from math import factorial
|
||||
problem_name = str('combs')
|
||||
sys.stdin = open(problem_name + ".in", "r")
|
||||
#sys.stdout = open(problem_name+".out", "w")
|
||||
n, k = list(map(int, input().split()))
|
||||
print(int(factorial(n)/(factorial(k)*factorial(n-k))))
|
||||
f = open('safdsf')
|
||||
f.close()
|
||||
Reference in New Issue
Block a user