题目链接:http://bailian.openjudge.cn/practice/2730
# include <stdio.h>
int main()
{
int result[100];
int n,i,j,cf=0;
scanf("%d",&n);
for(i=0;i<99;i++)
result[i]=0;
result[99]=1;
for(i=2;i<=n;i++)
{
for(j=99;j>0;j--)
{
result[j]=i*result[j]+cf;
cf=result[j]/10;
result[j]=result[j]%10;
}
}
i = 0;
while(result[i] == 0)
i++;
for(;i<100;i++)
printf("%d",result[i]);
printf("\n");
return 0;
}