euro denominations by madshall

for(;r=readline(t=1e4);print(a.join('+')))for(i=0,a=[],f='521';r;r>=k?r-=a.push(k)&&k:t/=++i%3?1:10)k=t*f[i%3]

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

download

return to the top page