problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
luogu::P1720类 参考

洛谷 P1720 月落乌啼算钱(斐波那契数列) 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P1720 月落乌啼算钱(斐波那契数列)

在文件 luogu.h315 行定义.

成员函数说明

◆ main()

int luogu::P1720::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp956 行定义.

956 {
957 double n;
958 cin >> n;
959 cout << fixed << setprecision(2) << (pow((1 + sqrt(5)) / 2, n) - pow((1 - sqrt(5)) / 2, n)) / sqrt(5);
960 return 0;
961 }

被这些函数引用 luogu::TEST().


该类的文档由以下文件生成: