#include<stdio.h>  
#include<math.h>  
int main() 

 int i,j,k; 
 double sum; 
 int  n,N; 
 scanf("%d",&n); 
 while(n--) 
 { 
  sum=0; 
  scanf("%d",&N); 
  for(j=1;j<=N;j++) 
  sum+=log10(j); 
  k=(int)sum+1; 
     printf("%d\n",k); 
 } 
 return 0; 
}         

相关文章:

  • 2022-12-23
  • 2021-09-06
  • 2021-07-23
  • 2021-10-30
  • 2021-07-24
  • 2022-12-23
  • 2021-06-18
  • 2021-11-18
猜你喜欢
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案