#include <stdlib.h> #include <stdio.h>
long a=10000,b,c=2800,d,e,f[2801],g;
main() { for(;b-c;) f[b++]=a/5; for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a) for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b); }
posted on 2005-11-07 20:36 Cdo 阅读(400) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3