哪里错了呀
查看原帖
哪里错了呀
352395
MYF04楼主2020/7/17 19:05
#include<bits/stdc++.h>
using namespace std;
 int main()
{
	int n;
	cin >>n;
	int a=1+sqrt(5),b,c=1-sqrt(5),d;
	b=a/2;
	d=c/2;
	printf("%.2lf",(pow(b,n)-pow(d,n))/sqrt(5));
	return 0;
	
 } 
2020/7/17 19:05
加载中...