euro denominations by chocobi

m,n;main(c){for(;~scanf("%d",&c);)for(n=5,m=10000;c<n*m?(n/=2)?n:(n=5,m/=10):printf((c-=n*m)?"%d+":"%d\n",n*m););}

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

download

return to the top page