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

17
Par ici la monnaie.py Normal file
View File

@@ -0,0 +1,17 @@
input = 26
def combien(val):
monnaie = (1,2,3,7,10,20,25)
sol = list()
for i in monnaie:
if i > val:
continue
if i == val:
sol.append([i,])
for s in combien(val-i):
if sorted([i,]+s) not in sol:
sol.append(sorted([i,]+s))
return sol
print(len(combien(input)))