problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
luogu::P5742 命名空间参考

洛谷 P5742 【深基7.例11】评等级 更多...

class  P5742
 
struct  Student
 学生 更多...
 

函数

 TEST (P5742, case1)
 

详细描述

洛谷 P5742 【深基7.例11】评等级

函数说明

◆ TEST()

luogu::P5742::TEST ( P5742  ,
case1   
)

在文件 luogu_test.cpp1365 行定义.

1365 {
1366 istringstream in("4\n"
1367 "1223 95 59\n"
1368 "1224 50 7\n"
1369 "1473 32 45\n"
1370 "1556 86 99");
1371 auto out = ostringstream();
1372 P5742::main(in, out);
1373 const auto ans = out.str();
1374 ASSERT_EQ("Excellent\n"
1375 "Not excellent\n"
1376 "Not excellent\n"
1377 "Excellent\n",
1378 ans);
1379 }
int main(int argc, char **argv)
Definition: main.cpp:5

引用了 main().