euro denominations by _nderscore

for(c=[i=1];i<1e5;i*=10)c.push(i*1,i*2,i*5);for(;r=readline(o=[]);print(o.join('+')))for(i=16;b=c[--i];)for(;r>=b;o.push(b))r-=b

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

download

return to the top page