d;main(n,s){for(;~scanf("%d%s",&n,s);printf("%d\n",d))for(d=1;n>0;n-=strlen(s))d*=n;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page