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

洛谷 P4956 [COCI2017-2018#6] Davor 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P4956 [COCI2017-2018#6] Davor

在文件 luogu.h351 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp1033 行定义.

1033 {
1034 int n;
1035 cin >> n;
1036 for(int k = 1; 1092 * k <= n; k++) {
1037 if((n - 1092 * k) % 364 == 0) {
1038 const int x = (n - 1092 * k) / 364;
1039 if(x < 1 || 100 < x) {
1040 continue;
1041 }
1042 cout << x << endl
1043 << k;
1044 break;
1045 }
1046 }
1047 return 0;
1048 }

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


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