第1个回答 2012-04-13
这个事要计算的,算法如下。
#include <stdio.h>
long a=10000, b, c=400, d, e, f[401], g;
void 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);
scanf("%s");
}本回答被网友采纳
第2个回答 2012-04-14
#include <stdio.h>long a=10000, b, c=400, d, e, f[401], g
void 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);
scanf("%s");