某届第二题,不确定
#include"stdio.h" #define N 100 void f(int a[],int b[],int c){ int temp,i,jinwei=0; for(i=N-1;i>=0;i--) { temp=b[i]*c+jinwei; a[i]=temp%10; jinwei=temp/10; b[i]=a[i]; } } int main() { int a[N]={0};int b[N]={0};int c; a[N-1]=1; b[N-1]=1; for(c=1;c<=16;c++){ f(a,b,c); } for(c=0;c<N;c++){ if(a[c]!=0){ for(;c<N;c++){ printf("%d",a[c]); } break; } } return 0; }