摘要:
#include <iostream.h>#define ARRAYNUL 10000#define NUMMBER 999int mainK(){ int a[ARRAYNUL]; int i,j,k; int flag=0,temp=0; for(i=0;i!=ARRAYNUL;++i) a[i]=0; a[ARRAYNUL-1]=1; for(i=2;i!=NUMMBER+1;++i) { for(j=ARRAYNUL-1;j!=-1;--j) a[j]*=i; for(j=ARRAYNU... 阅读全文
摘要:
/*例如1000阶乘位数: log10(1)+log10(2)+···+log10(1000)取整后加1 */#include<stdio.h>#include<math.h>int main(){ int n,i,t; double d; scanf("%d",&t); while(t--) { while(scanf("%d",&n)) { d=0; for(i=1;i<=n;i++) d+=l... 阅读全文