Factorial by nn

for(c=0;n=readline(a=[]);print(a.join('')))for(a[159]=1;+n;n--)for(j=160;1+a[--j]|c;c=c/10|0)a[j]=(c+=n*a[j]|0)%10

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

download

return to the top page