标签:
1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #include<cmath> 5 using namespace std; 6 int main() 7 { 8 int n; 9 cin>>n; 10 while(n--) 11 { 12 int x; 13 double answer=0; 14 cin>>x; 15 while(x!=1) 16 { 17 answer+=log10((double)x); 18 x--; 19 } 20 cout<<(int) answer+1<<endl; 21 } 22 return 0; 23 }
标签:
原文地址:http://www.cnblogs.com/RRirring/p/4728494.html