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

15
Monnaie.py Normal file
View File

@@ -0,0 +1,15 @@
input = (47, 13, 19, 62, 84, 32, 50, 42, 91, 93, 34, 19, 92, 35, 19, 4, 17)
table = {50:0, 20:0, 10:0, 5:0, 2:0, 1:0}
for i in input:
reste = i
# print(i)
for p in table:
if p <= reste:
table[p] += reste // p
# print("\t", p, reste // p)
reste -= (reste // p) * p
for i in table:
print(table[i], end= ", ")