1、题目:

算法与数据结构实验题1.1 单身狗进化

2、代码:

#include<stdio.h>
#define PI 3.141592654
#define E 2.71828182846
#include<math.h>
int main()
{
	int n;
	scanf("%d",&n);
	int result=1;
	result=log10(2*PI*n)/2+n*log10(n/E)+1;
	printf("%d\n",result);
	return 0;
}

相关文章:

  • 2021-10-04
  • 2021-06-15
  • 2021-06-23
  • 2021-05-17
  • 2021-05-19
  • 2022-02-19
  • 2021-10-15
  • 2021-06-01
猜你喜欢
  • 2021-06-29
  • 2021-08-28
  • 2021-10-04
  • 2021-05-16
  • 2022-02-05
  • 2021-06-24
相关资源
相似解决方案