标签:mit end factor cat which rmi tar cout output
http://acm.hdu.edu.cn/showproblem.php?pid=1018
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 41932 Accepted Submission(s): 20544
1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 using namespace std; 5 int main() 6 { 7 int t; 8 scanf("%d",&t); 9 while(t--) 10 { 11 int n; 12 double sum=1.0; 13 scanf("%d",&n); 14 for(double i = 1 ; i <= n ;i++) 15 { 16 sum+=log10(i); 17 } 18 cout << (long)sum << endl; 19 } 20 return 0; 21 }
标签:mit end factor cat which rmi tar cout output
原文地址:https://www.cnblogs.com/MekakuCityActor/p/9038282.html