标签:span c++ sso index style body ace tab color
n!的长度等于log10(n!)
1
2
3
4
5
6
7
8
9
10
11
|
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double ans = 1; for ( int i = 1; i <= n; i++) { ans += log10 (i); } cout << ( int )ans << endl; } |
标签:span c++ sso index style body ace tab color
原文地址:http://www.cnblogs.com/bestwzh/p/6637573.html