euro denominations by rolf

while 1:d=input();e=4;s=[];exec"w=5;exec'v=10**e*w;s+=d/v*[`v`];d-=d/v*v;w/=2;'*3;e-=1;"*5;print"+".join(s)

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

download

return to the top page