杭电1042
#include <stdio.h>int main (void){int a[100000],n,i,j,k,l;while(scanf("%d",&n)!=EOF){if(n==0){printf("0\n");continue;}k=1;a[0]=1;for(i=1;i<100000;i++)a[i]=0;for(i=1;i<=n;i++){for(j=0;j<k;j++)a[j]*=i;for(j=0;j<100000;j++){if(a[j]>9){www.zzzyk.comk++;a[j+1]+=a[j]/10;a[j]=a[j]%10;}elsecontinue;}}while(--k>=0)printf("%d",a[k]);printf("\n");}return 0;}
补充:软件开发 , C++ ,