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

洛谷 P1085 [NOIP2004 普及组] 不高兴的津津 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P1085 [NOIP2004 普及组] 不高兴的津津

在文件 luogu.h170 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp447 行定义.

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().


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