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

洛谷 P5720 【深基4.例4】一尺之棰 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P5720 【深基4.例4】一尺之棰

在文件 luogu.h245 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp682 行定义.

682 {
683 int n;
684 cin >> n;
685 int i = 1;
686 while(n != 1) {
687 n >>= 1;
688 i++;
689 }
690 cout << i;
691 return 0;
692 }

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


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