标签:style blog io ar os sp for on div
50
30414093201713378043612608166064768844377641568960512000000000000
#include<iostream>
<span style="font-size:18px;">using namespace std; int a[10000000]; int main() { int n,i,j,sum,t,b; cin>>n; a[0]=1; t=1;//数组长度 for(i=2;i<=n;i++) { b=0; for(j=0;j<t;j++) { sum=a[j]*i+b; a[j]=sum%10; b=sum/10; } while(b!=0) { a[j++]=b%10; b=b/10; t++; } } for(i=t-1;i>=0;i--) cout<<a[i]; cout<<endl; return 0; } </span>
标签:style blog io ar os sp for on div
原文地址:http://blog.csdn.net/phytn/article/details/41551961