标签:
1 #include<cstdio> 2 #include<cmath> 3 #include<cstring> 4 #include<iostream> 5 using namespace std; 6 int n; 7 int main(){ 8 scanf("%d",&n); 9 while(n--) 10 { 11 int t; 12 scanf("%d",&t); 13 int ans=0; 14 double k=0; 15 for (int i=1;i<=t;++i) 16 { 17 k+=log10(i); 18 } 19 ans=(int)k+1; 20 printf("%d\n",ans); 21 } 22 return 0; 23 }
标签:
原文地址:http://www.cnblogs.com/fakerv587/p/5179229.html