count down by chocobi

string s=stdin;int c=(int)substr(s,0,1);for(int j=length(s)-1;j>=0;--j){for(int i=c;i>0;--i)write((string)i+substr("000000",0,j));c=9;}write(0);

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

download

return to the top page