euro denominations by hallvabo

while~0:
 n=int(input());_='';d=5e4
 while n:_+="%+u"%d*int(n/d);n%=d;d/=2+.5*(d%9>4)
 print(_[1:])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page