作者:乐在hhh其中 | 来源:互联网 | 2023-05-17 12:35
#include
using namespace std;
typedef long long ll;
#define PI 3.1415926
#define E 2.718281828459
int main()
{
ll n;
cin >> n;
ll res = 0.5 * log10(2.0 * PI * n) + n * log10(n * 1.0 / E) + 1;
cout <
推导过程就不写了,网上到处都是,写一下模板就行