洛谷 P1085 [NOIP2004 普及组] 不高兴的津津
更多...
#include <luogu.h>
|
static int | main (istream &cin, ostream &cout) |
|
洛谷 P1085 [NOIP2004 普及组] 不高兴的津津
在文件 luogu.h 第 170 行定义.
◆ main()
int luogu::P1085::main |
( |
istream & | cin, |
|
|
ostream & | cout ) |
|
static |
在文件 luogu.cpp 第 447 行定义.
447 {
448 unsigned short a;
449 unsigned short b;
450 unsigned int maximum = 0;
451 unsigned int maximum_i = 0;
452 unsigned int i = 0;
453 while(cin >> a && cin >> b) {
454 i++;
455 if(a + b > 8 && a + b > maximum) {
456 maximum_i = i;
457 maximum = a + b;
458 }
459 }
460 cout << maximum_i;
461 return 0;
462 }
被这些函数引用 luogu::TEST().
该类的文档由以下文件生成: