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

洛谷 P1075 [NOIP2012 普及组] 质因数分解 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P1075 [NOIP2012 普及组] 质因数分解

在文件 luogu.h337 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp998 行定义.

998 {
999 int n;
1000 cin >> n;
1001 for(int i = 2; i <= sqrt(n); i++) {
1002 if(n % i == 0) {
1003 cout << n / i;
1004 return 0;
1005 }
1006 }
1007 return 0;
1008 }

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


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