#define PI 3.1415926535898 #define e 2.718281828459 const long long Mod=1e9+7; int main() { long long t,n,res; cin>>t; while(t--) { cin>>n; res=log10((2*PI*n))/2+n*log10(n/e); cout<<res+1<<endl; } }
#define PI 3.1415926535898 #define e 2.718281828459 const long long Mod=1e9+7; int main() { long long t,n,res; cin>>t; while(t--) { cin>>n; res=log10((2*PI*n))/2+n*log10(n/e); cout<<res+1<<endl; } }
转载于:https://www.cnblogs.com/Leozi/p/10835242.html