超短代码挑战(c++)
查看原帖
超短代码挑战(c++)
1354127
EGGY_PRATE楼主2024/10/24 19:34
#include<bits/stdc++.h>
int main(){long n;std::cin>>n;std::cout<<long((pow((1+sqrt(5))/2,n)-pow((1-sqrt(5))/2,n))/sqrt(5))<<".00";}

仅供借(chao)鉴(xi)。

2024/10/24 19:34
加载中...