Démonstration 5 0. 1. 2.
Documents pareils
Démonstration 5 1. 2. 3.
for i in reversed(xrange(len(p))):
t[i] = int(x // p[i])
x
= int(x % p[i])
return t
Suppose you have an unlimited supply of coins of each denomination and each amount is an
integer.