80分求助
查看原帖
80分求助
916579
GoodLuckCat楼主2023/9/5 09:56
#include<bits/stdc++.h>
using namespace std;
int main()
{
    double n;
    cin>>n;
    cout<<((int)((((pow(((1+(sqrt(5)))/2),(n)))-(pow(((1-(sqrt(5)))/2),(n))))/(sqrt(5)))));
    cout<<".00";
}
2023/9/5 09:56
加载中...