标签:
Description
Input
Output
Sample Input
Sample Output
#include<iostream> #include<cmath> using namespace std; int main() { int n; cin>>n; while(n--) { int a; double b=0; cin>>a; for(int i=2;i<=a;i++){ b+=log10((double)i); } cout<<(int)b+1<<endl; } //system("pause"); return 0; }
标签:
原文地址:http://www.cnblogs.com/farewell-farewell/p/5205448.html