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

洛谷 P5743 【深基7.习8】猴子吃桃 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P5743 【深基7.习8】猴子吃桃

在文件 luogu.h684 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp2494 行定义.

2494 {
2495 int n;
2496 cin >> n;
2497 int count = 1;
2498 for(int i = 0; i < n - 1; i++) {
2499 count++;
2500 count *= 2;
2501 }
2502 cout << count;
2503 return 0;
2504 }

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


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