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

洛谷 P1046 [NOIP2005 普及组] 陶陶摘苹果 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P1046 [NOIP2005 普及组] 陶陶摘苹果

在文件 luogu.h215 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp570 行定义.

570 {
571 int h[10];
572 for(int &i: h) {
573 cin >> i;
574 }
575 int t;
576 cin >> t;
577 t += 30;
578 int count = 0;
579 for(const int i: h) {
580 if(t >= i) {
581 count++;
582 }
583 }
584 cout << count;
585 return 0;
586 }

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


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