Initial release

This commit is contained in:
Francois JUMELLE
2021-05-03 22:32:40 +02:00
commit 20526d93c8
928 changed files with 452368 additions and 0 deletions

14
Somme Limite.py Normal file
View File

@@ -0,0 +1,14 @@
from itertools import combinations
input = [32, 37, 41, 42, 45, 49, 50, 51, 17, 54, 55, 28, 62]
MAX = 249
table = list(combinations(input, 2)) + list(combinations(input, 3)) + list(combinations(input, 4)) + list(combinations(input, 5)) + list(combinations(input, 6)) + list(combinations(input, 7))
ctr = 0
for i in table:
if sum(i) <= MAX:
ctr += 1
print(ctr)