标签:com name str space app mat 技术 style efi
求位数
#include<iostream> #include<cmath> using namespace std; #define pi 3.1415926535 #define e 2.718281828459 int main() { int n; cin >> n; printf("%d",(int)(1 + 0.5*log10(2 * pi*n) + n*log10(n / e))); }
标签:com name str space app mat 技术 style efi
原文地址:https://www.cnblogs.com/Jason66661010/p/13111743.html