Initial commit
This commit is contained in:
12
src/task53 - Combinatoric selections.py
Normal file
12
src/task53 - Combinatoric selections.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import math
|
||||
|
||||
result = 0
|
||||
for i in range(22,101):
|
||||
for j in range(0,101):
|
||||
if j > i:
|
||||
break
|
||||
if math.comb(i,j)>1000000:
|
||||
result+=((i-(j-1))-j)
|
||||
break
|
||||
|
||||
print(result)
|
Reference in New Issue
Block a user