euro denominations by xsot

while 1:
 i=input();d=50000;s=''
 while i:
\x09while i<d:d/=2+d%9//5*.5
\x09i-=d;s+='+%d'%d
 print s[1:]

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

download

return to the top page