This commit is contained in:
BarsTiger
2021-10-15 12:46:53 +03:00
parent b9772007b3
commit 68fb5410ee
45 changed files with 729 additions and 16 deletions

View File

@@ -0,0 +1,26 @@
n, nmax = input().split()
chisla = input().split()
n = int(n)
nmax = int(nmax)
for i in range(len(chisla)):
chisla[i] = int(chisla[i])
maxdobutok = 0
def fact(n):
factorial = 1
while n > 1:
factorial *= n
n -= 1
return factorial
# def umozatel(dobutok, n):
sochetaniy = fact(n)//fact(n - nmax)//fact(nmax)
# for eaeao in range(sochetaniy):
# for i in range(n):
# for j in range(nmax):