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

命名空间

namespace  P5742
 洛谷 P5742 【深基7.例11】评等级
 
namespace  P5744
 洛谷 P5744 【深基7.习9】培训
 

class  P1000
 洛谷 P1000 超级玛丽游戏 更多...
 
class  P1001
 洛谷 P1001 A+B Problem 更多...
 
class  P1002
 洛谷 P1002 [NOIP2002 普及组] 过河卒 更多...
 
class  P1003
 洛谷 P1003 [NOIP2011 提高组] 铺地毯 更多...
 
class  P1008
 洛谷 P1008 [NOIP1998 普及组] 三连击 更多...
 
class  P1009
 洛谷 P1009 [NOIP1998 普及组] 阶乘之和 更多...
 
class  P1035
 洛谷 P1035 [NOIP2002 普及组] 级数求和 更多...
 
class  P1046
 洛谷 P1046 [NOIP2005 普及组] 陶陶摘苹果 更多...
 
class  P1047
 洛谷 P1047 [NOIP2005 普及组] 校门外的树 更多...
 
class  P1055
 洛谷 P1055 [NOIP2008 普及组] ISBN 号码 更多...
 
class  P1075
 洛谷 P1075 [NOIP2012 普及组] 质因数分解 更多...
 
class  P1085
 洛谷 P1085 [NOIP2004 普及组] 不高兴的津津 更多...
 
class  P1089
 洛谷 P1089 [NOIP2004 提高组] 津津的储蓄计划 更多...
 
class  P1125
 洛谷 P1125 [NOIP2008 提高组] 笨小猴 更多...
 
class  P1161
 洛谷 P1161 开灯 更多...
 
class  P1200
 洛谷 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is Here 更多...
 
class  P1205
 洛谷 P1205 [USACO1.2] 方块转换 Transformations 更多...
 
class  P1217
 洛谷 P1217 [USACO1.5]回文质数 Prime Palindromes 更多...
 
class  P1304
 洛谷 P1304 哥德巴赫猜想 更多...
 
class  P1307
 洛谷 P1307 [NOIP2011 普及组] 数字反转 更多...
 
class  P1308
 洛谷 P1308 [NOIP2011 普及组] 统计单词数 更多...
 
class  P1319
 洛谷 P1319 压缩技术 更多...
 
class  P1320
 洛谷 P1320 压缩技术(续集版) 更多...
 
class  P1321
 洛谷 P1321 单词覆盖还原 更多...
 
class  P1420
 洛谷 P1420 最长连号 更多...
 
class  P1421
 洛谷 P1421 小玉买文具 更多...
 
class  P1422
 洛谷 P1422 小玉家的电费 更多...
 
class  P1423
 洛谷 P1423 小玉在游泳 更多...
 
class  P1424
 洛谷 P1424 小鱼的航程(改进版) 更多...
 
class  P1425
 洛谷 P1425 小鱼的游泳时间 更多...
 
class  P1427
 洛谷 P1427 小鱼的数字游戏 更多...
 
class  P1428
 洛谷 P1428 小鱼比可爱 更多...
 
class  P1553
 洛谷 P1553 数字反转(升级版) 更多...
 
class  P1554
 洛谷 P1554 梦中的统计 更多...
 
class  P1597
 洛谷 P1597 语句解析 更多...
 
class  P1598
 洛谷 P1598 垂直柱状图 更多...
 
class  P1603
 洛谷 P1603 斯诺登的密码 更多...
 
class  P1614
 洛谷 P1614 爱与愁的心痛 更多...
 
class  P1720
 洛谷 P1720 月落乌啼算钱(斐波那契数列) 更多...
 
class  P1765
 洛谷 P1765 手机 更多...
 
class  P1789
 洛谷 P1789 【Mc生存】插火把 更多...
 
class  P1888
 洛谷 P1888 三角函数 更多...
 
class  P1909
 洛谷 P1909 [NOIP2016 普及组] 买铅笔 更多...
 
class  P1914
 洛谷 P1914 小书童——凯撒密码 更多...
 
class  P1957
 洛谷 P1957 口算练习题 更多...
 
class  P1980
 洛谷 P1980 [NOIP2013 普及组] 计数问题 更多...
 
class  P2141
 洛谷 P2141 [NOIP2014 普及组] 珠心算测验 更多...
 
class  P2181
 洛谷 P2181 对角线 更多...
 
class  P2415
 洛谷 P2415 集合求和 更多...
 
class  P2433
 洛谷 P2433 【深基1-2】小学数学 N 合一 更多...
 
class  P2550
 洛谷 P2550 [AHOI2001]彩票摇奖 更多...
 
class  P2615
 洛谷 P2615 [NOIP2015 提高组] 神奇的幻方 更多...
 
class  P2669
 洛谷 P2669 [NOIP2015 普及组] 金币 更多...
 
class  P2911
 洛谷 P2911 [USACO08OCT]Bovine Bones G 更多...
 
class  P3741
 洛谷 P3741 honoka的键盘 更多...
 
class  P3954
 洛谷 P3954 [NOIP2017 普及组] 成绩 更多...
 
class  P4414
 洛谷 P4414 [COCI2006-2007#2] ABC 更多...
 
class  P4956
 洛谷 P4956 [COCI2017-2018#6] Davor 更多...
 
class  P5015
 洛谷 P5015 [NOIP2018 普及组] 标题统计 更多...
 
class  P5461
 洛谷 P5461 赦免战俘 更多...
 
class  P5703
 洛谷 P5703 【深基2.例5】苹果采购 更多...
 
class  P5704
 洛谷 P5704 【深基2.例6】字母转换 更多...
 
class  P5705
 洛谷 P5705 【深基2.例7】数字反转 更多...
 
class  P5706
 洛谷 P5706 【深基2.例8】再分肥宅水 更多...
 
class  P5707
 洛谷 P5707 【深基2.例12】上学迟到 更多...
 
class  P5708
 洛谷 P5708 【深基2.习2】三角形面积 更多...
 
class  P5709
 洛谷 P5709 【深基2.习6】Apples Prologue / 苹果和虫子 更多...
 
class  P5710
 洛谷 P5710 【深基3.例2】数的性质 更多...
 
class  P5711
 洛谷 P5711 【深基3.例3】闰年判断 更多...
 
class  P5712
 洛谷 P5712 【深基3.例4】Apples 更多...
 
class  P5713
 洛谷 P5713 【深基3.例5】洛谷团队系统 更多...
 
class  P5714
 洛谷 P5714 【深基3.例7】肥胖问题 更多...
 
class  P5715
 洛谷 P5715 【深基3.例8】三位数排序 更多...
 
class  P5716
 洛谷 P5716 【深基3.例9】月份天数 更多...
 
class  P5717
 洛谷 P5717 【深基3.习8】三角形分类 更多...
 
class  P5718
 洛谷 P5718 【深基4.例2】找最小值 更多...
 
class  P5719
 洛谷 P5719 【深基4.例3】分类平均 更多...
 
class  P5720
 洛谷 P5720 【深基4.例4】一尺之棰 更多...
 
class  P5721
 洛谷 P5721 【深基4.例6】数字直角三角形 更多...
 
class  P5722
 洛谷 P5722 【深基4.例11】数列求和 更多...
 
class  P5723
 洛谷 P5723 【深基4.例13】质数口袋 更多...
 
class  P5724
 洛谷 P5724 【深基4.习5】求极差 / 最大跨度值 更多...
 
class  P5725
 洛谷 P5725 【深基4.习8】求三角形 更多...
 
class  P5726
 洛谷 P5726 【深基4.习9】打分 更多...
 
class  P5727
 洛谷 P5727 【深基5.例3】冰雹猜想 更多...
 
class  P5728
 洛谷 P5728 【深基5.例5】旗鼓相当的对手 更多...
 
class  P5729
 洛谷 P5729 【深基5.例7】工艺品制作 更多...
 
class  P5730
 洛谷 P5730 【深基5.例10】显示屏 更多...
 
class  P5731
 洛谷 P5731 【深基5.习6】蛇形方阵 更多...
 
class  P5732
 洛谷 P5732 【深基5.习7】杨辉三角 更多...
 
class  P5733
 洛谷 P5733 【深基6.例1】自动修正 更多...
 
class  P5734
 洛谷 P5734 【深基6.例6】文字处理软件 更多...
 
class  P5735
 洛谷 P5735 【深基7.例1】距离函数 更多...
 
class  P5736
 洛谷 P5736 【深基7.例2】质数筛 更多...
 
class  P5737
 洛谷 P5737 【深基7.例3】闰年展示 更多...
 
class  P5738
 洛谷 P5738 【深基7.例4】歌唱比赛 更多...
 
class  P5739
 洛谷 P5739 【深基7.例7】计算阶乘 更多...
 
class  P5740
 洛谷 P5740 【深基7.例9】最厉害的学生 更多...
 
class  P5741
 洛谷 P5741 【深基7.例10】旗鼓相当的对手 - 加强版 更多...
 
class  P5743
 洛谷 P5743 【深基7.习8】猴子吃桃 更多...
 

函数

 TEST (P1000, case1)
 
 TEST (P1001, case1)
 
 TEST (P1002, case1)
 
 TEST (P1003, case1)
 
 TEST (P1003, case2)
 
 TEST (P1008, case1)
 
 TEST (P1009, case1)
 
 TEST (P1035, case1)
 
 TEST (P1046, case1)
 
 TEST (P1047, case1)
 
 TEST (P1055, case1)
 
 TEST (P1055, case2)
 
 TEST (P1075, case1)
 
 TEST (P1085, case1)
 
 TEST (P1089, case1)
 
 TEST (P1089, case2)
 
 TEST (P1125, case1)
 
 TEST (P1125, case2)
 
 TEST (P1125, case3)
 
 TEST (P1161, case1)
 
 TEST (P1200, case1)
 
 TEST (P1200, case2)
 
 TEST (P1205, case1)
 
 TEST (P1205, case2)
 
 TEST (P1217, case1)
 
 TEST (P1304, case1)
 
 TEST (P1307, case1)
 
 TEST (P1307, case2)
 
 TEST (P1308, case1)
 
 TEST (P1308, case2)
 
 TEST (P1308, case3)
 
 TEST (P1319, case1)
 
 TEST (P1319, case2)
 
 TEST (P1320, case1)
 
 TEST (P1321, case1)
 
 TEST (P1420, case1)
 
 TEST (P1421, case1)
 
 TEST (P1422, case1)
 
 TEST (P1423, case1)
 
 TEST (P1424, case1)
 
 TEST (P1425, case1)
 
 TEST (P1427, case1)
 
 TEST (P1428, case1)
 
 TEST (P1553, case1)
 
 TEST (P1553, case2)
 
 TEST (P1553, case3)
 
 TEST (P1553, case4)
 
 TEST (P1553, case5)
 
 TEST (P1554, case1)
 
 TEST (P1597, case1)
 
 TEST (P1597, case2)
 
 TEST (P1598, case1)
 
 TEST (P1603, case1)
 
 TEST (P1614, case1)
 
 TEST (P1720, case1)
 
 TEST (P1765, case1)
 
 TEST (P1789, case1)
 
 TEST (P1888, case1)
 
 TEST (P1909, case1)
 
 TEST (P1909, case2)
 
 TEST (P1909, case3)
 
 TEST (P1914, case1)
 
 TEST (P1957, case1)
 
 TEST (P1957, case2)
 
 TEST (P1980, case1)
 
 TEST (P2141, case1)
 
 TEST (P2141, case2)
 
 TEST (P2181, case1)
 
 TEST (P2181, case2)
 
 TEST (P2181, case3)
 
 TEST (P2181, case4)
 
 TEST (P2415, case1)
 
 TEST (P2433, case1)
 
 TEST (P2550, case1)
 
 TEST (P2615, case1)
 
 TEST (P2669, case1)
 
 TEST (P2669, case2)
 
 TEST (P2911, case1)
 
 TEST (P3741, case1)
 
 TEST (P3741, case2)
 
 TEST (P3741, case3)
 
 TEST (P3741, case4)
 
 TEST (P3741, case5)
 
 TEST (P3741, case6)
 
 TEST (P3954, case1)
 
 TEST (P3954, case2)
 
 TEST (P4414, case1)
 
 TEST (P4414, case2)
 
 TEST (P4956, case1)
 
 TEST (P4956, case2)
 
 TEST (P4956, case3)
 
 TEST (P5015, case1)
 
 TEST (P5015, case2)
 
 TEST (P5461, case1)
 
 TEST (P5703, case1)
 
 TEST (P5704, case1)
 
 TEST (P5705, case1)
 
 TEST (P5706, case1)
 
 TEST (P5707, case1)
 
 TEST (P5708, case1)
 
 TEST (P5709, case1)
 
 TEST (P5710, case1)
 
 TEST (P5711, case1)
 
 TEST (P5711, case2)
 
 TEST (P5711, case3)
 
 TEST (P5711, case4)
 
 TEST (P5712, case1)
 
 TEST (P5712, case3)
 
 TEST (P5713, case1)
 
 TEST (P5713, case2)
 
 TEST (P5714, case1)
 
 TEST (P5715, case1)
 
 TEST (P5715, case2)
 
 TEST (P5716, case1)
 
 TEST (P5716, case2)
 
 TEST (P5718, case1)
 
 TEST (P5719, case1)
 
 TEST (P5720, case1)
 
 TEST (P5721, case1)
 
 TEST (P5722, case1)
 
 TEST (P5723, case1)
 
 TEST (P5724, case1)
 
 TEST (P5725, case1)
 
 TEST (P5726, case1)
 
 TEST (P5727, case1)
 
 TEST (P5728, case1)
 
 TEST (P5729, case1)
 
 TEST (P5730, case1)
 
 TEST (P5731, case1)
 
 TEST (P5732, case1)
 
 TEST (P5733, case1)
 
 TEST (P5734, case1)
 
 TEST (P5734, case2)
 
 TEST (P5735, case1)
 
 TEST (P5736, case1)
 
 TEST (P5736, case2)
 
 TEST (P5737, case1)
 
 TEST (P5738, case1)
 
 TEST (P5739, case1)
 
 TEST (P5740, case1)
 
 TEST (P5741, case1)
 
 TEST (P5743, case1)
 

函数说明

◆ TEST() [1/142]

luogu::TEST ( P1000  ,
case1   
)

在文件 luogu_test.cpp15 行定义.

15 {
16 istringstream in("");
17 auto out = ostringstream();
18 P1000::main(in, out);
19 const auto ans = out.str();
20 ASSERT_EQ(" ********\n"
21 " ************\n"
22 " ####....#.\n"
23 " #..###.....##....\n"
24 " ###.......###### ### ###\n"
25 " ........... #...# #...#\n"
26 " ##*####### #.#.# #.#.#\n"
27 " ####*******###### #.#.# #.#.#\n"
28 " ...#***.****.*###.... #...# #...#\n"
29 " ....**********##..... ### ###\n"
30 " ....**** *****....\n"
31 " #### ####\n"
32 " ###### ######\n"
33 "##############################################################\n"
34 "#...#......#.##...#......#.##...#......#.##------------------#\n"
35 "###########################################------------------#\n"
36 "#..#....#....##..#....#....##..#....#....#####################\n"
37 "########################################## #----------#\n"
38 "#.....#......##.....#......##.....#......# #----------#\n"
39 "########################################## #----------#\n"
40 "#.#..#....#..##.#..#....#..##.#..#....#..# #----------#\n"
41 "########################################## ############",
42 ans);
43 }
int main(int argc, char **argv)
Definition: main.cpp:5

引用了 luogu::P1000::main().

◆ TEST() [2/142]

luogu::TEST ( P1001  ,
case1   
)

在文件 luogu_test.cpp7 行定义.

7 {
8 istringstream in("20 30");
9 auto out = ostringstream();
10 P1001::main(in, out);
11 const auto ans = out.str();
12 ASSERT_EQ("50", ans);
13 }

引用了 luogu::P1001::main().

◆ TEST() [3/142]

luogu::TEST ( P1002  ,
case1   
)

在文件 luogu_test.cpp53 行定义.

53 {
54 istringstream in("6 6 3 3");
55 auto out = ostringstream();
56 P1002::main(in, out);
57 const auto ans = out.str();
58 ASSERT_EQ("6", ans);
59 }

引用了 luogu::P1002::main().

◆ TEST() [4/142]

luogu::TEST ( P1003  ,
case1   
)

在文件 luogu_test.cpp61 行定义.

61 {
62 istringstream in("3\n1 0 2 3\n0 2 3 3\n2 1 3 3\n2 2");
63 auto out = ostringstream();
64 P1003::main(in, out);
65 const auto ans = out.str();
66 ASSERT_EQ("3", ans);
67 }

引用了 luogu::P1003::main().

◆ TEST() [5/142]

luogu::TEST ( P1003  ,
case2   
)

在文件 luogu_test.cpp69 行定义.

69 {
70 istringstream in("3\n1 0 2 3\n0 2 3 3\n2 1 3 3\n4 5");
71 auto out = ostringstream();
72 P1003::main(in, out);
73 const auto ans = out.str();
74 ASSERT_EQ("-1", ans);
75 }

引用了 luogu::P1003::main().

◆ TEST() [6/142]

luogu::TEST ( P1008  ,
case1   
)

在文件 luogu_test.cpp45 行定义.

45 {
46 istringstream in("");
47 auto out = ostringstream();
48 P1008::main(in, out);
49 const auto ans = out.str();
50 ASSERT_EQ("192 384 576\n219 438 657\n273 546 819\n327 654 981\n", ans);
51 }

引用了 luogu::P1008::main().

◆ TEST() [7/142]

luogu::TEST ( P1009  ,
case1   
)

在文件 luogu_test.cpp462 行定义.

462 {
463 istringstream in("3");
464 auto out = ostringstream();
465 P1009::main(in, out);
466 const auto ans = out.str();
467 ASSERT_EQ("9", ans);
468 }

引用了 luogu::P1009::main().

◆ TEST() [8/142]

luogu::TEST ( P1035  ,
case1   
)

在文件 luogu_test.cpp478 行定义.

478 {
479 istringstream in("1");
480 auto out = ostringstream();
481 P1035::main(in, out);
482 const auto ans = out.str();
483 ASSERT_EQ("2", ans);
484 }

引用了 luogu::P1035::main().

◆ TEST() [9/142]

luogu::TEST ( P1046  ,
case1   
)

在文件 luogu_test.cpp397 行定义.

397 {
398 istringstream in("100 200 150 140 129 134 167 198 200 111\n"
399 "110");
400 auto out = ostringstream();
401 P1046::main(in, out);
402 const auto ans = out.str();
403 ASSERT_EQ("5", ans);
404 }

引用了 luogu::P1046::main().

◆ TEST() [10/142]

luogu::TEST ( P1047  ,
case1   
)

在文件 luogu_test.cpp716 行定义.

716 {
717 istringstream in("500 3\n"
718 "150 300\n"
719 "100 200\n"
720 "470 471");
721 auto out = ostringstream();
722 P1047::main(in, out);
723 const auto ans = out.str();
724 ASSERT_EQ("298", ans);
725 }

引用了 luogu::P1047::main().

◆ TEST() [11/142]

luogu::TEST ( P1055  ,
case1   
)

在文件 luogu_test.cpp357 行定义.

357 {
358 istringstream in("0-670-82162-4");
359 auto out = ostringstream();
360 P1055::main(in, out);
361 const auto ans = out.str();
362 ASSERT_EQ("Right", ans);
363 }

引用了 luogu::P1055::main().

◆ TEST() [12/142]

luogu::TEST ( P1055  ,
case2   
)

在文件 luogu_test.cpp365 行定义.

365 {
366 istringstream in("0-670-82162-0");
367 auto out = ostringstream();
368 P1055::main(in, out);
369 const auto ans = out.str();
370 ASSERT_EQ("0-670-82162-4", ans);
371 }

引用了 luogu::P1055::main().

◆ TEST() [13/142]

luogu::TEST ( P1075  ,
case1   
)

在文件 luogu_test.cpp596 行定义.

596 {
597 istringstream in("21");
598 auto out = ostringstream();
599 P1075::main(in, out);
600 const auto ans = out.str();
601 ASSERT_EQ("7", ans);
602 }

引用了 luogu::P1075::main().

◆ TEST() [14/142]

luogu::TEST ( P1085  ,
case1   
)

在文件 luogu_test.cpp319 行定义.

319 {
320 istringstream in("5 3\n"
321 "6 2\n"
322 "7 2\n"
323 "5 3\n"
324 "5 4\n"
325 "0 4\n"
326 "0 6");
327 auto out = ostringstream();
328 P1085::main(in, out);
329 const auto ans = out.str();
330 ASSERT_EQ("3", ans);
331 }

引用了 luogu::P1085::main().

◆ TEST() [15/142]

luogu::TEST ( P1089  ,
case1   
)

在文件 luogu_test.cpp653 行定义.

653 {
654 istringstream in("290\n"
655 "230\n"
656 "280\n"
657 "200\n"
658 "300\n"
659 "170\n"
660 "340\n"
661 "50 \n"
662 "90 \n"
663 "80 \n"
664 "200\n"
665 "60 ");
666 auto out = ostringstream();
667 P1089::main(in, out);
668 const auto ans = out.str();
669 ASSERT_EQ("-7", ans);
670 }

引用了 luogu::P1089::main().

◆ TEST() [16/142]

luogu::TEST ( P1089  ,
case2   
)

在文件 luogu_test.cpp672 行定义.

672 {
673 istringstream in("290 \n"
674 "230 \n"
675 "280 \n"
676 "200 \n"
677 "300 \n"
678 "170 \n"
679 "330 \n"
680 "50 \n"
681 "90 \n"
682 "80 \n"
683 "200 \n"
684 "60 ");
685 auto out = ostringstream();
686 P1089::main(in, out);
687 const auto ans = out.str();
688 ASSERT_EQ("1580", ans);
689 }

引用了 luogu::P1089::main().

◆ TEST() [17/142]

luogu::TEST ( P1125  ,
case1   
)

在文件 luogu_test.cpp973 行定义.

973 {
974 istringstream in("error");
975 auto out = ostringstream();
976 P1125::main(in, out);
977 const auto ans = out.str();
978 ASSERT_EQ("Lucky Word\n"
979 "2",
980 ans);
981 }

引用了 luogu::P1125::main().

◆ TEST() [18/142]

luogu::TEST ( P1125  ,
case2   
)

在文件 luogu_test.cpp983 行定义.

983 {
984 istringstream in("olympic");
985 auto out = ostringstream();
986 P1125::main(in, out);
987 const auto ans = out.str();
988 ASSERT_EQ("No Answer\n"
989 "0",
990 ans);
991 }

引用了 luogu::P1125::main().

◆ TEST() [19/142]

luogu::TEST ( P1125  ,
case3   
)

在文件 luogu_test.cpp993 行定义.

993 {
994 istringstream in("ubuntuubuntuubuntuubuntuubuntuu");
995 auto out = ostringstream();
996 P1125::main(in, out);
997 const auto ans = out.str();
998 ASSERT_EQ("Lucky Word\n"
999 "11",
1000 ans);
1001 }

引用了 luogu::P1125::main().

◆ TEST() [20/142]

luogu::TEST ( P1161  ,
case1   
)

在文件 luogu_test.cpp834 行定义.

834 {
835 istringstream in("3\n"
836 "1.618034 13\n"
837 "2.618034 7\n"
838 "1.000000 21");
839 auto out = ostringstream();
840 P1161::main(in, out);
841 const auto ans = out.str();
842 ASSERT_EQ("20", ans);
843 }

引用了 luogu::P1161::main().

◆ TEST() [21/142]

luogu::TEST ( P1200  ,
case1   
)

在文件 luogu_test.cpp1218 行定义.

1218 {
1219 istringstream in("COMETQ\n"
1220 "HVNGAT");
1221 auto out = ostringstream();
1222 P1200::main(in, out);
1223 const auto ans = out.str();
1224 ASSERT_EQ("GO", ans);
1225 }

引用了 luogu::P1200::main().

◆ TEST() [22/142]

luogu::TEST ( P1200  ,
case2   
)

在文件 luogu_test.cpp1227 行定义.

1227 {
1228 istringstream in("ABSTAR\n"
1229 "USACO");
1230 auto out = ostringstream();
1231 P1200::main(in, out);
1232 const auto ans = out.str();
1233 ASSERT_EQ("STAY", ans);
1234 }

引用了 luogu::P1200::main().

◆ TEST() [23/142]

luogu::TEST ( P1205  ,
case1   
)

在文件 luogu_test.cpp922 行定义.

922 {
923 istringstream in("3\n"
924 "@-@\n"
925 "---\n"
926 "@@-\n"
927 "@-@\n"
928 "@--\n"
929 "--@");
930 auto out = ostringstream();
931 auto sol = P1205();
932 P1205::main(in, out);
933 const auto ans = out.str();
934 ASSERT_EQ("1", ans);
935 }
洛谷 P1205 [USACO1.2] 方块转换 Transformations
Definition: luogu.h:486

引用了 luogu::P1205::main().

◆ TEST() [24/142]

luogu::TEST ( P1205  ,
case2   
)

在文件 luogu_test.cpp937 行定义.

937 {
938 istringstream in("5\n"
939 "-@@@-\n"
940 "-@@--\n"
941 "-@---\n"
942 "-----\n"
943 "-----\n"
944 "-----\n"
945 "----@\n"
946 "---@@\n"
947 "--@@@\n"
948 "-----");
949 auto out = ostringstream();
950 auto sol = P1205();
951 P1205::main(in, out);
952 const auto ans = out.str();
953 ASSERT_EQ("5", ans);
954 }

引用了 luogu::P1205::main().

◆ TEST() [25/142]

luogu::TEST ( P1217  ,
case1   
)

在文件 luogu_test.cpp528 行定义.

528 {
529 istringstream in("5 500");
530 auto out = ostringstream();
531 P1217::main(in, out);
532 const auto ans = out.str();
533 ASSERT_EQ("5\n"
534 "7\n"
535 "11\n"
536 "101\n"
537 "131\n"
538 "151\n"
539 "181\n"
540 "191\n"
541 "313\n"
542 "353\n"
543 "373\n"
544 "383\n",
545 ans);
546 }

引用了 luogu::P1217::main().

◆ TEST() [26/142]

luogu::TEST ( P1304  ,
case1   
)

在文件 luogu_test.cpp1382 行定义.

1382 {
1383 istringstream in("10");
1384 auto out = ostringstream();
1385 P1304::main(in, out);
1386 const auto ans = out.str();
1387 ASSERT_EQ("4=2+2\n"
1388 "6=3+3\n"
1389 "8=3+5\n"
1390 "10=3+7\n",
1391 ans);
1392 }

引用了 luogu::P1304::main().

◆ TEST() [27/142]

luogu::TEST ( P1307  ,
case1   
)

在文件 luogu_test.cpp556 行定义.

556 {
557 istringstream in("123");
558 auto out = ostringstream();
559 P1307::main(in, out);
560 const auto ans = out.str();
561 ASSERT_EQ("321", ans);
562 }

引用了 luogu::P1307::main().

◆ TEST() [28/142]

luogu::TEST ( P1307  ,
case2   
)

在文件 luogu_test.cpp564 行定义.

564 {
565 istringstream in("-380");
566 auto out = ostringstream();
567 P1307::main(in, out);
568 const auto ans = out.str();
569 ASSERT_EQ("-83", ans);
570 }

引用了 luogu::P1307::main().

◆ TEST() [29/142]

luogu::TEST ( P1308  ,
case1   
)

在文件 luogu_test.cpp1071 行定义.

1071 {
1072 istringstream in("To\n"
1073 "to be or not to be is a question");
1074 auto out = ostringstream();
1075 P1308::main(in, out);
1076 const auto ans = out.str();
1077 ASSERT_EQ("2 0", ans);
1078 }

引用了 luogu::P1308::main().

◆ TEST() [30/142]

luogu::TEST ( P1308  ,
case2   
)

在文件 luogu_test.cpp1080 行定义.

1080 {
1081 istringstream in("to\n"
1082 "Did the Ottoman Empire lose its power at that time");
1083 auto out = ostringstream();
1084 P1308::main(in, out);
1085 const auto ans = out.str();
1086 ASSERT_EQ("-1", ans);
1087 }

引用了 luogu::P1308::main().

◆ TEST() [31/142]

luogu::TEST ( P1308  ,
case3   
)

在文件 luogu_test.cpp1089 行定义.

1089 {
1090 istringstream in("td\n"
1091 " Td tLWCsrmt");
1092 auto out = ostringstream();
1093 P1308::main(in, out);
1094 const auto ans = out.str();
1095 ASSERT_EQ("1 2", ans);
1096 }

引用了 luogu::P1308::main().

◆ TEST() [32/142]

luogu::TEST ( P1319  ,
case1   
)

在文件 luogu_test.cpp880 行定义.

880 {
881 istringstream in("7 3 1 6 1 6 4 3 1 6 1 6 1 3 7");
882 auto out = ostringstream();
883 P1319::main(in, out);
884 const auto ans = out.str();
885 ASSERT_EQ("0001000\n"
886 "0001000\n"
887 "0001111\n"
888 "0001000\n"
889 "0001000\n"
890 "0001000\n"
891 "1111111\n",
892 ans);
893 }

引用了 luogu::P1319::main().

◆ TEST() [33/142]

luogu::TEST ( P1319  ,
case2   
)

在文件 luogu_test.cpp895 行定义.

895 {
896 istringstream in("5 0 5 2 1 2 5 2 1 2 5");
897 auto out = ostringstream();
898 P1319::main(in, out);
899 const auto ans = out.str();
900 ASSERT_EQ("11111\n"
901 "00100\n"
902 "11111\n"
903 "00100\n"
904 "11111\n",
905 ans);
906 }

引用了 luogu::P1319::main().

◆ TEST() [34/142]

luogu::TEST ( P1320  ,
case1   
)

在文件 luogu_test.cpp908 行定义.

908 {
909 istringstream in("0001000\n"
910 "0001000\n"
911 "0001111\n"
912 "0001000\n"
913 "0001000\n"
914 "0001000\n"
915 "1111111");
916 auto out = ostringstream();
917 P1320::main(in, out);
918 const auto ans = out.str();
919 ASSERT_EQ("7 3 1 6 1 6 4 3 1 6 1 6 1 3 7 ", ans);
920 }

引用了 luogu::P1320::main().

◆ TEST() [35/142]

luogu::TEST ( P1321  ,
case1   
)

在文件 luogu_test.cpp1160 行定义.

1160 {
1161 istringstream in("......boyogirlyy......girl.......");
1162 auto out = ostringstream();
1163 P1321::main(in, out);
1164 const auto ans = out.str();
1165 ASSERT_EQ("4\n"
1166 "2\n",
1167 ans);
1168 }

引用了 luogu::P1321::main().

◆ TEST() [36/142]

luogu::TEST ( P1420  ,
case1   
)

在文件 luogu_test.cpp588 行定义.

588 {
589 istringstream in("10\n1 5 6 2 3 4 5 6 8 9");
590 auto out = ostringstream();
591 P1420::main(in, out);
592 const auto ans = out.str();
593 ASSERT_EQ("5", ans);
594 }

引用了 luogu::P1420::main().

◆ TEST() [37/142]

luogu::TEST ( P1421  ,
case1   
)

在文件 luogu_test.cpp135 行定义.

135 {
136 istringstream in("10 3");
137 auto out = ostringstream();
138 P1421::main(in, out);
139 const auto ans = out.str();
140 ASSERT_EQ("5", ans);
141 }

引用了 luogu::P1421::main().

◆ TEST() [38/142]

luogu::TEST ( P1422  ,
case1   
)

在文件 luogu_test.cpp373 行定义.

373 {
374 istringstream in("267");
375 auto out = ostringstream();
376 P1422::main(in, out);
377 const auto ans = out.str();
378 ASSERT_EQ("121.5", ans);
379 }

引用了 luogu::P1422::main().

◆ TEST() [39/142]

luogu::TEST ( P1423  ,
case1   
)

在文件 luogu_test.cpp548 行定义.

548 {
549 istringstream in("4.3");
550 auto out = ostringstream();
551 P1423::main(in, out);
552 const auto ans = out.str();
553 ASSERT_EQ("3", ans);
554 }

引用了 luogu::P1423::main().

◆ TEST() [40/142]

luogu::TEST ( P1424  ,
case1   
)

在文件 luogu_test.cpp381 行定义.

381 {
382 istringstream in("3 10");
383 auto out = ostringstream();
384 P1424::main(in, out);
385 const auto ans = out.str();
386 ASSERT_EQ("2000", ans);
387 }

引用了 luogu::P1424::main().

◆ TEST() [41/142]

luogu::TEST ( P1425  ,
case1   
)

在文件 luogu_test.cpp111 行定义.

111 {
112 istringstream in("12 50 19 10");
113 auto out = ostringstream();
114 P1425::main(in, out);
115 const auto ans = out.str();
116 ASSERT_EQ("6 20", ans);
117 }

引用了 luogu::P1425::main().

◆ TEST() [42/142]

luogu::TEST ( P1427  ,
case1   
)

在文件 luogu_test.cpp700 行定义.

700 {
701 istringstream in("3 65 23 5 34 1 30 0");
702 auto out = ostringstream();
703 P1427::main(in, out);
704 const auto ans = out.str();
705 ASSERT_EQ("30 1 34 5 23 65 3 ", ans);
706 }

引用了 luogu::P1427::main().

◆ TEST() [43/142]

luogu::TEST ( P1428  ,
case1   
)

在文件 luogu_test.cpp691 行定义.

691 {
692 istringstream in("6\n"
693 "4 3 0 5 1 2");
694 auto out = ostringstream();
695 P1428::main(in, out);
696 const auto ans = out.str();
697 ASSERT_EQ("0 0 0 3 1 2 ", ans);
698 }

引用了 luogu::P1428::main().

◆ TEST() [44/142]

luogu::TEST ( P1553  ,
case1   
)

在文件 luogu_test.cpp1170 行定义.

1170 {
1171 istringstream in("5087462");
1172 auto out = ostringstream();
1173 P1553::main(in, out);
1174 const auto ans = out.str();
1175 ASSERT_EQ("2647805", ans);
1176 }

引用了 luogu::P1553::main().

◆ TEST() [45/142]

luogu::TEST ( P1553  ,
case2   
)

在文件 luogu_test.cpp1178 行定义.

1178 {
1179 istringstream in("600.084");
1180 auto out = ostringstream();
1181 P1553::main(in, out);
1182 const auto ans = out.str();
1183 ASSERT_EQ("6.48", ans);
1184 }

引用了 luogu::P1553::main().

◆ TEST() [46/142]

luogu::TEST ( P1553  ,
case3   
)

在文件 luogu_test.cpp1186 行定义.

1186 {
1187 istringstream in("700/27");
1188 auto out = ostringstream();
1189 P1553::main(in, out);
1190 const auto ans = out.str();
1191 ASSERT_EQ("7/72", ans);
1192 }

引用了 luogu::P1553::main().

◆ TEST() [47/142]

luogu::TEST ( P1553  ,
case4   
)

在文件 luogu_test.cpp1194 行定义.

1194 {
1195 istringstream in("8670%");
1196 auto out = ostringstream();
1197 P1553::main(in, out);
1198 const auto ans = out.str();
1199 ASSERT_EQ("768%", ans);
1200 }

引用了 luogu::P1553::main().

◆ TEST() [48/142]

luogu::TEST ( P1553  ,
case5   
)

在文件 luogu_test.cpp1202 行定义.

1202 {
1203 istringstream in("0");
1204 auto out = ostringstream();
1205 P1553::main(in, out);
1206 const auto ans = out.str();
1207 ASSERT_EQ("0", ans);
1208 }

引用了 luogu::P1553::main().

◆ TEST() [49/142]

luogu::TEST ( P1554  ,
case1   
)

在文件 luogu_test.cpp784 行定义.

784 {
785 istringstream in("129 137");
786 auto out = ostringstream();
787 P1554::main(in, out);
788 const auto ans = out.str();
789 ASSERT_EQ("1 10 2 9 1 1 1 1 0 1 ", ans);
790 }

引用了 luogu::P1554::main().

◆ TEST() [50/142]

luogu::TEST ( P1597  ,
case1   
)

在文件 luogu_test.cpp1236 行定义.

1236 {
1237 istringstream in("a:=3;b:=4;c:=5;");
1238 auto out = ostringstream();
1239 P1597::main(in, out);
1240 const auto ans = out.str();
1241 ASSERT_EQ("3 4 5", ans);
1242 }

引用了 luogu::P1597::main().

◆ TEST() [51/142]

luogu::TEST ( P1597  ,
case2   
)

在文件 luogu_test.cpp1244 行定义.

1244 {
1245 istringstream in("c:=5;a:=b;b:=c;c:=a;a:=a;b:=b;c:=c;a:=c;c:=a;a:=b;b:=c;c:=a;a:=a;b:=b;c:=c;a:=c;b:=a;a:=c;c:=b;a:=2;c:=a;b:=9;\n");
1246 auto out = ostringstream();
1247 P1597::main(in, out);
1248 const auto ans = out.str();
1249 ASSERT_EQ("2 9 2", ans);
1250 }

引用了 luogu::P1597::main().

◆ TEST() [52/142]

luogu::TEST ( P1598  ,
case1   
)

在文件 luogu_test.cpp1252 行定义.

1252 {
1253 istringstream in("THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG.\n"
1254 "THIS IS AN EXAMPLE TO TEST FOR YOUR\n"
1255 "HISTOGRAM PROGRAM.\n"
1256 "HELLO!");
1257 auto out = ostringstream();
1258 P1598::main(in, out);
1259 const auto ans = out.str();
1260 ASSERT_EQ(" * \n"
1261 " * \n"
1262 " * * \n"
1263 " * * * * \n"
1264 " * * * * \n"
1265 "* * * * * * \n"
1266 "* * * * * * * * * * \n"
1267 "* * * * * * * * * * * * * \n"
1268 "* * * * * * * * * * * * * * * * * * \n"
1269 "* * * * * * * * * * * * * * * * * * * * * * * * * * \n"
1270 "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ",
1271 ans);
1272 }

引用了 luogu::P1598::main().

◆ TEST() [53/142]

luogu::TEST ( P1603  ,
case1   
)

在文件 luogu_test.cpp1210 行定义.

1210 {
1211 istringstream in("Black Obama is two five zero .");
1212 auto out = ostringstream();
1213 P1603::main(in, out);
1214 const auto ans = out.str();
1215 ASSERT_EQ("425", ans);
1216 }

引用了 luogu::P1603::main().

◆ TEST() [54/142]

luogu::TEST ( P1614  ,
case1   
)

在文件 luogu_test.cpp810 行定义.

810 {
811 istringstream in("8 3\n"
812 "1\n"
813 "4\n"
814 "7\n"
815 "3\n"
816 "1\n"
817 "2\n"
818 "4\n"
819 "3");
820 auto out = ostringstream();
821 P1614::main(in, out);
822 const auto ans = out.str();
823 ASSERT_EQ("6", ans);
824 }

引用了 luogu::P1614::main().

◆ TEST() [55/142]

luogu::TEST ( P1720  ,
case1   
)

在文件 luogu_test.cpp572 行定义.

572 {
573 istringstream in("6");
574 auto out = ostringstream();
575 P1720::main(in, out);
576 const auto ans = out.str();
577 ASSERT_EQ("8.00", ans);
578 }

引用了 luogu::P1720::main().

◆ TEST() [56/142]

luogu::TEST ( P1765  ,
case1   
)

在文件 luogu_test.cpp1098 行定义.

1098 {
1099 istringstream in("i have a dream");
1100 auto out = ostringstream();
1101 P1765::main(in, out);
1102 const auto ans = out.str();
1103 ASSERT_EQ("23", ans);
1104 }

引用了 luogu::P1765::main().

◆ TEST() [57/142]

luogu::TEST ( P1789  ,
case1   
)

在文件 luogu_test.cpp871 行定义.

871 {
872 istringstream in("5 1 0\n"
873 "3 3");
874 auto out = ostringstream();
875 P1789::main(in, out);
876 const auto ans = out.str();
877 ASSERT_EQ("12", ans);
878 }

引用了 luogu::P1789::main().

◆ TEST() [58/142]

luogu::TEST ( P1888  ,
case1   
)

在文件 luogu_test.cpp389 行定义.

389 {
390 istringstream in("3 5 4");
391 auto out = ostringstream();
392 P1888::main(in, out);
393 const auto ans = out.str();
394 ASSERT_EQ("3/5", ans);
395 }

引用了 luogu::P1888::main().

◆ TEST() [59/142]

luogu::TEST ( P1909  ,
case1   
)

在文件 luogu_test.cpp333 行定义.

333 {
334 istringstream in("57\n2 2\n50 30\n30 27");
335 auto out = ostringstream();
336 P1909::main(in, out);
337 const auto ans = out.str();
338 ASSERT_EQ("54", ans);
339 }

引用了 luogu::P1909::main().

◆ TEST() [60/142]

luogu::TEST ( P1909  ,
case2   
)

在文件 luogu_test.cpp341 行定义.

341 {
342 istringstream in("9998\n128 233\n128 2333\n128 666");
343 auto out = ostringstream();
344 P1909::main(in, out);
345 const auto ans = out.str();
346 ASSERT_EQ("18407", ans);
347 }

引用了 luogu::P1909::main().

◆ TEST() [61/142]

luogu::TEST ( P1909  ,
case3   
)

在文件 luogu_test.cpp349 行定义.

349 {
350 istringstream in("9999\n101 1111\n1 9999\n1111 9999");
351 auto out = ostringstream();
352 P1909::main(in, out);
353 const auto ans = out.str();
354 ASSERT_EQ("89991", ans);
355 }

引用了 luogu::P1909::main().

◆ TEST() [62/142]

luogu::TEST ( P1914  ,
case1   
)

在文件 luogu_test.cpp964 行定义.

964 {
965 istringstream in("1\n"
966 "qwe");
967 auto out = ostringstream();
968 P1914::main(in, out);
969 const auto ans = out.str();
970 ASSERT_EQ("rxf", ans);
971 }

引用了 luogu::P1914::main().

◆ TEST() [63/142]

luogu::TEST ( P1957  ,
case1   
)

在文件 luogu_test.cpp1003 行定义.

1003 {
1004 istringstream in("4\na 64 46\n275 125\nc 11 99\nb 46 64\n");
1005 auto out = ostringstream();
1006 P1957::main(in, out);
1007 const auto ans = out.str();
1008 ASSERT_EQ("64+46=110\n9\n275+125=400\n11\n11*99=1089\n10\n46-64=-18\n9\n", ans);
1009 }

引用了 luogu::P1957::main().

◆ TEST() [64/142]

luogu::TEST ( P1957  ,
case2   
)

在文件 luogu_test.cpp1011 行定义.

1011 {
1012 istringstream in("1\na 99 999");
1013 auto out = ostringstream();
1014 P1957::main(in, out);
1015 const auto ans = out.str();
1016 ASSERT_EQ("99+999=1098\n11\n", ans);
1017 }

引用了 luogu::P1957::main().

◆ TEST() [65/142]

luogu::TEST ( P1980  ,
case1   
)

在文件 luogu_test.cpp470 行定义.

470 {
471 istringstream in("11 1");
472 auto out = ostringstream();
473 P1980::main(in, out);
474 const auto ans = out.str();
475 ASSERT_EQ("4", ans);
476 }

引用了 luogu::P1980::main().

◆ TEST() [66/142]

luogu::TEST ( P2141  ,
case1   
)

在文件 luogu_test.cpp792 行定义.

792 {
793 istringstream in("4\n"
794 "1 2 3 4");
795 auto out = ostringstream();
796 P2141::main(in, out);
797 const auto ans = out.str();
798 ASSERT_EQ("2", ans);
799 }

引用了 luogu::P2141::main().

◆ TEST() [67/142]

luogu::TEST ( P2141  ,
case2   
)

在文件 luogu_test.cpp801 行定义.

801 {
802 istringstream in("100\n"
803 "6094 106 5958 877 3352 8959 292 9253 3860 448 5709 8295 4667 2588 3663 2486 1129 8870 3126 6203 727 4316 6541 9689 8818 2119 7331 7598 1879 7303 1100 8740 4567 2649 2373 7505 5848 4337 9953 4436 8395 8273 1028 4449 3363 6254 7856 6710 8422 3833 5690 6664 6326 2550 119 2075 3475 9024 3239 8889 807 543 8103 1441 9731 3873 5194 9557 3256 6245 3266 2777 4552 2390 8550 4777 9701 5694 9133 6736 2586 298 3695 1992 2958 3831 6905 8134 989 6292 8967 118 8442 1765 931 4760 5945 1703 6262 1671");
804 auto out = ostringstream();
805 P2141::main(in, out);
806 const auto ans = out.str();
807 ASSERT_EQ("22", ans);
808 }

引用了 luogu::P2141::main().

◆ TEST() [68/142]

luogu::TEST ( P2181  ,
case1   
)

在文件 luogu_test.cpp151 行定义.

151 {
152 istringstream in("3");
153 auto out = ostringstream();
154 P2181::main(in, out);
155 const auto ans = out.str();
156 ASSERT_EQ("0", ans);
157 }

引用了 luogu::P2181::main().

◆ TEST() [69/142]

luogu::TEST ( P2181  ,
case2   
)

在文件 luogu_test.cpp159 行定义.

159 {
160 istringstream in("6");
161 auto out = ostringstream();
162 P2181::main(in, out);
163 const auto ans = out.str();
164 ASSERT_EQ("15", ans);
165 }

引用了 luogu::P2181::main().

◆ TEST() [70/142]

luogu::TEST ( P2181  ,
case3   
)

在文件 luogu_test.cpp167 行定义.

167 {
168 istringstream in("4");
169 auto out = ostringstream();
170 P2181::main(in, out);
171 const auto ans = out.str();
172 ASSERT_EQ("1", ans);
173 }

引用了 luogu::P2181::main().

◆ TEST() [71/142]

luogu::TEST ( P2181  ,
case4   
)

在文件 luogu_test.cpp175 行定义.

175 {
176 istringstream in("5");
177 auto out = ostringstream();
178 P2181::main(in, out);
179 const auto ans = out.str();
180 ASSERT_EQ("5", ans);
181 }

引用了 luogu::P2181::main().

◆ TEST() [72/142]

luogu::TEST ( P2415  ,
case1   
)

在文件 luogu_test.cpp1394 行定义.

1394 {
1395 istringstream in("2 3");
1396 auto out = ostringstream();
1397 P2415::main(in, out);
1398 const auto ans = out.str();
1399 ASSERT_EQ("10", ans);
1400 }

引用了 luogu::P2415::main().

◆ TEST() [73/142]

luogu::TEST ( P2433  ,
case1   
)

在文件 luogu_test.cpp119 行定义.

119 {
120 istringstream in("2");
121 auto out = ostringstream();
122 P2433::main(in, out);
123 const auto ans = out.str();
124 ASSERT_EQ("6 4", ans);
125 }

引用了 luogu::P2433::main().

◆ TEST() [74/142]

luogu::TEST ( P2550  ,
case1   
)

在文件 luogu_test.cpp748 行定义.

748 {
749 istringstream in("2\n"
750 "23 31 1 14 19 17 18\n"
751 "12 8 9 23 1 16 7\n"
752 "11 7 10 21 2 9 31");
753 auto out = ostringstream();
754 P2550::main(in, out);
755 const auto ans = out.str();
756 ASSERT_EQ("0 0 0 0 0 1 1 ", ans);
757 }

引用了 luogu::P2550::main().

◆ TEST() [75/142]

luogu::TEST ( P2615  ,
case1   
)

在文件 luogu_test.cpp759 行定义.

759 {
760 istringstream in("3");
761 auto out = ostringstream();
762 P2615::main(in, out);
763 const auto ans = out.str();
764 ASSERT_EQ("8 1 6 \n"
765 "3 5 7 \n"
766 "4 9 2 \n",
767 ans);
768 }

引用了 luogu::P2615::main().

◆ TEST() [76/142]

luogu::TEST ( P2669  ,
case1   
)

在文件 luogu_test.cpp486 行定义.

486 {
487 istringstream in("6");
488 auto out = ostringstream();
489 P2669::main(in, out);
490 const auto ans = out.str();
491 ASSERT_EQ("14", ans);
492 }

引用了 luogu::P2669::main().

◆ TEST() [77/142]

luogu::TEST ( P2669  ,
case2   
)

在文件 luogu_test.cpp494 行定义.

494 {
495 istringstream in("1000");
496 auto out = ostringstream();
497 P2669::main(in, out);
498 const auto ans = out.str();
499 ASSERT_EQ("29820", ans);
500 }

引用了 luogu::P2669::main().

◆ TEST() [78/142]

luogu::TEST ( P2911  ,
case1   
)

在文件 luogu_test.cpp826 行定义.

826 {
827 istringstream in("3 2 3");
828 auto out = ostringstream();
829 P2911::main(in, out);
830 const auto ans = out.str();
831 ASSERT_EQ("5", ans);
832 }

引用了 luogu::P2911::main().

◆ TEST() [79/142]

luogu::TEST ( P3741  ,
case1   
)

在文件 luogu_test.cpp1106 行定义.

1106 {
1107 istringstream in("2\n"
1108 "VK");
1109 auto out = ostringstream();
1110 P3741::main(in, out);
1111 const auto ans = out.str();
1112 ASSERT_EQ("1", ans);
1113 }

引用了 luogu::P3741::main().

◆ TEST() [80/142]

luogu::TEST ( P3741  ,
case2   
)

在文件 luogu_test.cpp1115 行定义.

1115 {
1116 istringstream in("2\n"
1117 "VV");
1118 auto out = ostringstream();
1119 P3741::main(in, out);
1120 const auto ans = out.str();
1121 ASSERT_EQ("1", ans);
1122 }

引用了 luogu::P3741::main().

◆ TEST() [81/142]

luogu::TEST ( P3741  ,
case3   
)

在文件 luogu_test.cpp1124 行定义.

1124 {
1125 istringstream in("1\n"
1126 "V");
1127 auto out = ostringstream();
1128 P3741::main(in, out);
1129 const auto ans = out.str();
1130 ASSERT_EQ("0", ans);
1131 }

引用了 luogu::P3741::main().

◆ TEST() [82/142]

luogu::TEST ( P3741  ,
case4   
)

在文件 luogu_test.cpp1133 行定义.

1133 {
1134 istringstream in("20\n"
1135 "VKKKKKKKKKVVVVVVVVVK");
1136 auto out = ostringstream();
1137 P3741::main(in, out);
1138 const auto ans = out.str();
1139 ASSERT_EQ("3", ans);
1140 }

引用了 luogu::P3741::main().

◆ TEST() [83/142]

luogu::TEST ( P3741  ,
case5   
)

在文件 luogu_test.cpp1142 行定义.

1142 {
1143 istringstream in("4\n"
1144 "KVKV");
1145 auto out = ostringstream();
1146 P3741::main(in, out);
1147 const auto ans = out.str();
1148 ASSERT_EQ("1", ans);
1149 }

引用了 luogu::P3741::main().

◆ TEST() [84/142]

luogu::TEST ( P3741  ,
case6   
)

在文件 luogu_test.cpp1151 行定义.

1151 {
1152 istringstream in("23\n"
1153 "KKVVKVVKVVKKVVKKVKVVKKV");
1154 auto out = ostringstream();
1155 P3741::main(in, out);
1156 const auto ans = out.str();
1157 ASSERT_EQ("7", ans);
1158 }

引用了 luogu::P3741::main().

◆ TEST() [85/142]

luogu::TEST ( P3954  ,
case1   
)

在文件 luogu_test.cpp191 行定义.

191 {
192 istringstream in("100 100 80");
193 auto out = ostringstream();
194 P3954::main(in, out);
195 const auto ans = out.str();
196 ASSERT_EQ("90", ans);
197 }

引用了 luogu::P3954::main().

◆ TEST() [86/142]

luogu::TEST ( P3954  ,
case2   
)

在文件 luogu_test.cpp199 行定义.

199 {
200 istringstream in("60 90 80");
201 auto out = ostringstream();
202 P3954::main(in, out);
203 const auto ans = out.str();
204 ASSERT_EQ("79", ans);
205 }

引用了 luogu::P3954::main().

◆ TEST() [87/142]

luogu::TEST ( P4414  ,
case1   
)

在文件 luogu_test.cpp406 行定义.

406 {
407 istringstream in("1 5 3\n"
408 "ABC");
409 auto out = ostringstream();
410 P4414::main(in, out);
411 const auto ans = out.str();
412 ASSERT_EQ("1 3 5 ", ans);
413 }

引用了 luogu::P4414::main().

◆ TEST() [88/142]

luogu::TEST ( P4414  ,
case2   
)

在文件 luogu_test.cpp415 行定义.

415 {
416 istringstream in("6 4 2\n"
417 "CAB");
418 auto out = ostringstream();
419 P4414::main(in, out);
420 const auto ans = out.str();
421 ASSERT_EQ("6 2 4 ", ans);
422 }

引用了 luogu::P4414::main().

◆ TEST() [89/142]

luogu::TEST ( P4956  ,
case1   
)

在文件 luogu_test.cpp621 行定义.

621 {
622 istringstream in("1456");
623 auto out = ostringstream();
624 P4956::main(in, out);
625 const auto ans = out.str();
626 ASSERT_EQ("1\n1", ans);
627 }

引用了 luogu::P4956::main().

◆ TEST() [90/142]

luogu::TEST ( P4956  ,
case2   
)

在文件 luogu_test.cpp629 行定义.

629 {
630 istringstream in("6188");
631 auto out = ostringstream();
632 P4956::main(in, out);
633 const auto ans = out.str();
634 ASSERT_EQ("14\n1", ans);
635 }

引用了 luogu::P4956::main().

◆ TEST() [91/142]

luogu::TEST ( P4956  ,
case3   
)

在文件 luogu_test.cpp637 行定义.

637 {
638 istringstream in("40404");
639 auto out = ostringstream();
640 P4956::main(in, out);
641 const auto ans = out.str();
642 ASSERT_EQ("99\n4", ans);
643 }

引用了 luogu::P4956::main().

◆ TEST() [92/142]

luogu::TEST ( P5015  ,
case1   
)

在文件 luogu_test.cpp1019 行定义.

1019 {
1020 istringstream in("234");
1021 auto out = ostringstream();
1022 P5015::main(in, out);
1023 const auto ans = out.str();
1024 ASSERT_EQ("3", ans);
1025 }

引用了 luogu::P5015::main().

◆ TEST() [93/142]

luogu::TEST ( P5015  ,
case2   
)

在文件 luogu_test.cpp1027 行定义.

1027 {
1028 istringstream in("Ca 45");
1029 auto out = ostringstream();
1030 P5015::main(in, out);
1031 const auto ans = out.str();
1032 ASSERT_EQ("4", ans);
1033 }

引用了 luogu::P5015::main().

◆ TEST() [94/142]

luogu::TEST ( P5461  ,
case1   
)

在文件 luogu_test.cpp1324 行定义.

1324 {
1325 istringstream in("3");
1326 auto out = ostringstream();
1327 P5461::main(in, out);
1328 const auto ans = out.str();
1329 ASSERT_EQ("0 0 0 0 0 0 0 1 \n"
1330 "0 0 0 0 0 0 1 1 \n"
1331 "0 0 0 0 0 1 0 1 \n"
1332 "0 0 0 0 1 1 1 1 \n"
1333 "0 0 0 1 0 0 0 1 \n"
1334 "0 0 1 1 0 0 1 1 \n"
1335 "0 1 0 1 0 1 0 1 \n"
1336 "1 1 1 1 1 1 1 1 \n",
1337 ans);
1338 }

引用了 luogu::P5461::main().

◆ TEST() [95/142]

luogu::TEST ( P5703  ,
case1   
)

在文件 luogu_test.cpp77 行定义.

77 {
78 istringstream in("5 3");
79 auto out = ostringstream();
80 P5703::main(in, out);
81 const auto ans = out.str();
82 ASSERT_EQ("15", ans);
83 }

引用了 luogu::P5703::main().

◆ TEST() [96/142]

luogu::TEST ( P5704  ,
case1   
)

在文件 luogu_test.cpp85 行定义.

85 {
86 istringstream in("q");
87 auto out = ostringstream();
88 P5704::main(in, out);
89 const auto ans = out.str();
90 ASSERT_EQ("Q", ans);
91 }

引用了 luogu::P5704::main().

◆ TEST() [97/142]

luogu::TEST ( P5705  ,
case1   
)

在文件 luogu_test.cpp93 行定义.

93 {
94 istringstream in("123.4");
95 auto out = ostringstream();
96 P5705::main(in, out);
97 const auto ans = out.str();
98 ASSERT_EQ("4.321", ans);
99 }

引用了 luogu::P5705::main().

◆ TEST() [98/142]

luogu::TEST ( P5706  ,
case1   
)

在文件 luogu_test.cpp101 行定义.

101 {
102 istringstream in("500.0 3");
103 auto out = ostringstream();
104 P5706::main(in, out);
105 const auto ans = out.str();
106 ASSERT_EQ("166.667\n"
107 "6",
108 ans);
109 }

引用了 luogu::P5706::main().

◆ TEST() [99/142]

luogu::TEST ( P5707  ,
case1   
)

在文件 luogu_test.cpp183 行定义.

183 {
184 istringstream in("100 99");
185 auto out = ostringstream();
186 P5707::main(in, out);
187 const auto ans = out.str();
188 ASSERT_EQ("07:48", ans);
189 }

引用了 luogu::P5707::main().

◆ TEST() [100/142]

luogu::TEST ( P5708  ,
case1   
)

在文件 luogu_test.cpp127 行定义.

127 {
128 istringstream in("3 4 5");
129 auto out = ostringstream();
130 P5708::main(in, out);
131 const auto ans = out.str();
132 ASSERT_EQ("6.0", ans);
133 }

引用了 luogu::P5708::main().

◆ TEST() [101/142]

luogu::TEST ( P5709  ,
case1   
)

在文件 luogu_test.cpp143 行定义.

143 {
144 istringstream in("50 10 200");
145 auto out = ostringstream();
146 P5709::main(in, out);
147 const auto ans = out.str();
148 ASSERT_EQ("30", ans);
149 }

引用了 luogu::P5709::main().

◆ TEST() [102/142]

luogu::TEST ( P5710  ,
case1   
)

在文件 luogu_test.cpp207 行定义.

207 {
208 istringstream in("12");
209 auto out = ostringstream();
210 P5710::main(in, out);
211 const auto ans = out.str();
212 ASSERT_EQ("1 1 0 0", ans);
213 }

引用了 luogu::P5710::main().

◆ TEST() [103/142]

luogu::TEST ( P5711  ,
case1   
)

在文件 luogu_test.cpp215 行定义.

215 {
216 istringstream in("1926");
217 auto out = ostringstream();
218 P5711::main(in, out);
219 const auto ans = out.str();
220 ASSERT_EQ("0", ans);
221 }

引用了 luogu::P5711::main().

◆ TEST() [104/142]

luogu::TEST ( P5711  ,
case2   
)

在文件 luogu_test.cpp223 行定义.

223 {
224 istringstream in("1900");
225 auto out = ostringstream();
226 P5711::main(in, out);
227 const auto ans = out.str();
228 ASSERT_EQ("0", ans);
229 }

引用了 luogu::P5711::main().

◆ TEST() [105/142]

luogu::TEST ( P5711  ,
case3   
)

在文件 luogu_test.cpp231 行定义.

231 {
232 istringstream in("2000");
233 auto out = ostringstream();
234 P5711::main(in, out);
235 const auto ans = out.str();
236 ASSERT_EQ("1", ans);
237 }

引用了 luogu::P5711::main().

◆ TEST() [106/142]

luogu::TEST ( P5711  ,
case4   
)

在文件 luogu_test.cpp239 行定义.

239 {
240 istringstream in("1996");
241 auto out = ostringstream();
242 P5711::main(in, out);
243 const auto ans = out.str();
244 ASSERT_EQ("1", ans);
245 }

引用了 luogu::P5711::main().

◆ TEST() [107/142]

luogu::TEST ( P5712  ,
case1   
)

在文件 luogu_test.cpp247 行定义.

247 {
248 istringstream in("1");
249 auto out = ostringstream();
250 P5712::main(in, out);
251 const auto ans = out.str();
252 ASSERT_EQ("Today, I ate 1 apple.", ans);
253 }

引用了 luogu::P5712::main().

◆ TEST() [108/142]

luogu::TEST ( P5712  ,
case3   
)

在文件 luogu_test.cpp255 行定义.

255 {
256 istringstream in("3");
257 auto out = ostringstream();
258 P5712::main(in, out);
259 const auto ans = out.str();
260 ASSERT_EQ("Today, I ate 3 apples.", ans);
261 }

引用了 luogu::P5712::main().

◆ TEST() [109/142]

luogu::TEST ( P5713  ,
case1   
)

在文件 luogu_test.cpp263 行定义.

263 {
264 istringstream in("2");
265 auto out = ostringstream();
266 P5713::main(in, out);
267 const auto ans = out.str();
268 ASSERT_EQ("Local", ans);
269 }

引用了 luogu::P5713::main().

◆ TEST() [110/142]

luogu::TEST ( P5713  ,
case2   
)

在文件 luogu_test.cpp271 行定义.

271 {
272 istringstream in("50");
273 auto out = ostringstream();
274 P5713::main(in, out);
275 const auto ans = out.str();
276 ASSERT_EQ("Luogu", ans);
277 }

引用了 luogu::P5713::main().

◆ TEST() [111/142]

luogu::TEST ( P5714  ,
case1   
)

在文件 luogu_test.cpp295 行定义.

295 {
296 istringstream in("70 1.72");
297 auto out = ostringstream();
298 P5714::main(in, out);
299 const auto ans = out.str();
300 ASSERT_EQ("Normal", ans);
301 }

引用了 luogu::P5714::main().

◆ TEST() [112/142]

luogu::TEST ( P5715  ,
case1   
)

在文件 luogu_test.cpp279 行定义.

279 {
280 istringstream in("1 14 5");
281 auto out = ostringstream();
282 P5715::main(in, out);
283 const auto ans = out.str();
284 ASSERT_EQ("1 5 14 ", ans);
285 }

引用了 luogu::P5715::main().

◆ TEST() [113/142]

luogu::TEST ( P5715  ,
case2   
)

在文件 luogu_test.cpp287 行定义.

287 {
288 istringstream in("2 2 2");
289 auto out = ostringstream();
290 P5715::main(in, out);
291 const auto ans = out.str();
292 ASSERT_EQ("2 2 2 ", ans);
293 }

引用了 luogu::P5715::main().

◆ TEST() [114/142]

luogu::TEST ( P5716  ,
case1   
)

在文件 luogu_test.cpp303 行定义.

303 {
304 istringstream in("1926 8");
305 auto out = ostringstream();
306 P5716::main(in, out);
307 const auto ans = out.str();
308 ASSERT_EQ("31", ans);
309 }

引用了 luogu::P5716::main().

◆ TEST() [115/142]

luogu::TEST ( P5716  ,
case2   
)

在文件 luogu_test.cpp311 行定义.

311 {
312 istringstream in("2000 2");
313 auto out = ostringstream();
314 P5716::main(in, out);
315 const auto ans = out.str();
316 ASSERT_EQ("29", ans);
317 }

引用了 luogu::P5716::main().

◆ TEST() [116/142]

luogu::TEST ( P5718  ,
case1   
)

在文件 luogu_test.cpp424 行定义.

424 {
425 istringstream in("8\n"
426 "1 9 2 6 0 8 1 7");
427 auto out = ostringstream();
428 P5718::main(in, out);
429 const auto ans = out.str();
430 ASSERT_EQ("0", ans);
431 }

引用了 luogu::P5718::main().

◆ TEST() [117/142]

luogu::TEST ( P5719  ,
case1   
)

在文件 luogu_test.cpp433 行定义.

433 {
434 istringstream in("100 16");
435 auto out = ostringstream();
436 P5719::main(in, out);
437 const auto ans = out.str();
438 ASSERT_EQ("56.0 50.1", ans);
439 }

引用了 luogu::P5719::main().

◆ TEST() [118/142]

luogu::TEST ( P5720  ,
case1   
)

在文件 luogu_test.cpp441 行定义.

441 {
442 istringstream in("100");
443 auto out = ostringstream();
444 P5720::main(in, out);
445 const auto ans = out.str();
446 ASSERT_EQ("7", ans);
447 }

引用了 luogu::P5720::main().

◆ TEST() [119/142]

luogu::TEST ( P5721  ,
case1   
)

在文件 luogu_test.cpp449 行定义.

449 {
450 istringstream in("5");
451 auto out = ostringstream();
452 P5721::main(in, out);
453 const auto ans = out.str();
454 ASSERT_EQ("0102030405\n"
455 "06070809\n"
456 "101112\n"
457 "1314\n"
458 "15\n",
459 ans);
460 }

引用了 luogu::P5721::main().

◆ TEST() [120/142]

luogu::TEST ( P5722  ,
case1   
)

在文件 luogu_test.cpp502 行定义.

502 {
503 istringstream in("100");
504 auto out = ostringstream();
505 P5722::main(in, out);
506 const auto ans = out.str();
507 ASSERT_EQ("5050", ans);
508 }

引用了 luogu::P5722::main().

◆ TEST() [121/142]

luogu::TEST ( P5723  ,
case1   
)

在文件 luogu_test.cpp510 行定义.

510 {
511 istringstream in("100");
512 auto out = ostringstream();
513 P5723::main(in, out);
514 const auto ans = out.str();
515 ASSERT_EQ("2\n"
516 "3\n"
517 "5\n"
518 "7\n"
519 "11\n"
520 "13\n"
521 "17\n"
522 "19\n"
523 "23\n"
524 "9\n",
525 ans);
526 }

引用了 luogu::P5723::main().

◆ TEST() [122/142]

luogu::TEST ( P5724  ,
case1   
)

在文件 luogu_test.cpp580 行定义.

580 {
581 istringstream in("6\n1 1 4 5 1 4");
582 auto out = ostringstream();
583 P5724::main(in, out);
584 const auto ans = out.str();
585 ASSERT_EQ("4", ans);
586 }

引用了 luogu::P5724::main().

◆ TEST() [123/142]

luogu::TEST ( P5725  ,
case1   
)

在文件 luogu_test.cpp604 行定义.

604 {
605 istringstream in("4");
606 auto out = ostringstream();
607 P5725::main(in, out);
608 const auto ans = out.str();
609 ASSERT_EQ("01020304\n"
610 "05060708\n"
611 "09101112\n"
612 "13141516\n"
613 "\n"
614 " 01\n"
615 " 0203\n"
616 " 040506\n"
617 "07080910\n",
618 ans);
619 }

引用了 luogu::P5725::main().

◆ TEST() [124/142]

luogu::TEST ( P5726  ,
case1   
)

在文件 luogu_test.cpp645 行定义.

645 {
646 istringstream in("5\n9 5 6 8 9");
647 auto out = ostringstream();
648 P5726::main(in, out);
649 const auto ans = out.str();
650 ASSERT_EQ("7.67", ans);
651 }

引用了 luogu::P5726::main().

◆ TEST() [125/142]

luogu::TEST ( P5727  ,
case1   
)

在文件 luogu_test.cpp708 行定义.

708 {
709 istringstream in("20");
710 auto out = ostringstream();
711 P5727::main(in, out);
712 const auto ans = out.str();
713 ASSERT_EQ("1 2 4 8 16 5 10 20 ", ans);
714 }

引用了 luogu::P5727::main().

◆ TEST() [126/142]

luogu::TEST ( P5728  ,
case1   
)

在文件 luogu_test.cpp727 行定义.

727 {
728 istringstream in("3\n"
729 "90 90 90\n"
730 "85 95 90\n"
731 "80 100 91");
732 auto out = ostringstream();
733 P5728::main(in, out);
734 const auto ans = out.str();
735 ASSERT_EQ("2", ans);
736 }

引用了 luogu::P5728::main().

◆ TEST() [127/142]

luogu::TEST ( P5729  ,
case1   
)

在文件 luogu_test.cpp738 行定义.

738 {
739 istringstream in("4 4 4\n"
740 "1\n"
741 "1 1 1 2 2 2");
742 auto out = ostringstream();
743 P5729::main(in, out);
744 const auto ans = out.str();
745 ASSERT_EQ("56", ans);
746 }

引用了 luogu::P5729::main().

◆ TEST() [128/142]

luogu::TEST ( P5730  ,
case1   
)

在文件 luogu_test.cpp770 行定义.

770 {
771 istringstream in("10\n"
772 "0123456789");
773 auto out = ostringstream();
774 P5730::main(in, out);
775 const auto ans = out.str();
776 ASSERT_EQ("XXX...X.XXX.XXX.X.X.XXX.XXX.XXX.XXX.XXX\n"
777 "X.X...X...X...X.X.X.X...X.....X.X.X.X.X\n"
778 "X.X...X.XXX.XXX.XXX.XXX.XXX...X.XXX.XXX\n"
779 "X.X...X.X.....X...X...X.X.X...X.X.X...X\n"
780 "XXX...X.XXX.XXX...X.XXX.XXX...X.XXX.XXX\n",
781 ans);
782 }

引用了 luogu::P5730::main().

◆ TEST() [129/142]

luogu::TEST ( P5731  ,
case1   
)

在文件 luogu_test.cpp845 行定义.

845 {
846 istringstream in("4");
847 auto out = ostringstream();
848 P5731::main(in, out);
849 const auto ans = out.str();
850 ASSERT_EQ(" 1 2 3 4\n"
851 " 12 13 14 5\n"
852 " 11 16 15 6\n"
853 " 10 9 8 7\n",
854 ans);
855 }

引用了 luogu::P5731::main().

◆ TEST() [130/142]

luogu::TEST ( P5732  ,
case1   
)

在文件 luogu_test.cpp857 行定义.

857 {
858 istringstream in("6");
859 auto out = ostringstream();
860 P5732::main(in, out);
861 const auto ans = out.str();
862 ASSERT_EQ("1 \n"
863 "1 1 \n"
864 "1 2 1 \n"
865 "1 3 3 1 \n"
866 "1 4 6 4 1 \n"
867 "1 5 10 10 5 1 \n",
868 ans);
869 }

引用了 luogu::P5732::main().

◆ TEST() [131/142]

luogu::TEST ( P5733  ,
case1   
)

在文件 luogu_test.cpp956 行定义.

956 {
957 istringstream in("Luogu4!");
958 auto out = ostringstream();
959 P5733::main(in, out);
960 const auto ans = out.str();
961 ASSERT_EQ("LUOGU4!", ans);
962 }

引用了 luogu::P5733::main().

◆ TEST() [132/142]

luogu::TEST ( P5734  ,
case1   
)

在文件 luogu_test.cpp1035 行定义.

1035 {
1036 istringstream in("4\n"
1037 "ILove\n"
1038 "1 Luogu\n"
1039 "2 5 5\n"
1040 "3 3 guGugu\n"
1041 "4 gu");
1042 auto out = ostringstream();
1043 P5734::main(in, out);
1044 const auto ans = out.str();
1045 ASSERT_EQ("ILoveLuogu\n"
1046 "Luogu\n"
1047 "LuoguGugugu\n"
1048 "3\n",
1049 ans);
1050 }

引用了 luogu::P5734::main().

◆ TEST() [133/142]

luogu::TEST ( P5734  ,
case2   
)

在文件 luogu_test.cpp1052 行定义.

1052 {
1053 istringstream in("5\n"
1054 "ILove\n"
1055 "1 Luogu\n"
1056 "2 5 5\n"
1057 "3 3 guGugu\n"
1058 "4 gu\n"
1059 "4 fafa");
1060 auto out = ostringstream();
1061 P5734::main(in, out);
1062 const auto ans = out.str();
1063 ASSERT_EQ("ILoveLuogu\n"
1064 "Luogu\n"
1065 "LuoguGugugu\n"
1066 "3\n"
1067 "-1\n",
1068 ans);
1069 }

引用了 luogu::P5734::main().

◆ TEST() [134/142]

luogu::TEST ( P5735  ,
case1   
)

在文件 luogu_test.cpp1274 行定义.

1274 {
1275 istringstream in("0 0\n"
1276 "0 3\n"
1277 "4 0");
1278 auto out = ostringstream();
1279 P5735::main(in, out);
1280 const auto ans = out.str();
1281 ASSERT_EQ("12.00", ans);
1282 }

引用了 luogu::P5735::main().

◆ TEST() [135/142]

luogu::TEST ( P5736  ,
case1   
)

在文件 luogu_test.cpp1284 行定义.

1284 {
1285 istringstream in("5\n3 4 5 6 7");
1286 auto out = ostringstream();
1287 P5736::main(in, out);
1288 const auto ans = out.str();
1289 ASSERT_EQ("3 5 7 ", ans);
1290 }

引用了 luogu::P5736::main().

◆ TEST() [136/142]

luogu::TEST ( P5736  ,
case2   
)

在文件 luogu_test.cpp1292 行定义.

1292 {
1293 istringstream in("7\n1 2 3 4 5 1 2");
1294 auto out = ostringstream();
1295 P5736::main(in, out);
1296 const auto ans = out.str();
1297 ASSERT_EQ("2 3 5 2 ", ans);
1298 }

引用了 luogu::P5736::main().

◆ TEST() [137/142]

luogu::TEST ( P5737  ,
case1   
)

在文件 luogu_test.cpp1300 行定义.

1300 {
1301 istringstream in("1989 2001");
1302 auto out = ostringstream();
1303 P5737::main(in, out);
1304 const auto ans = out.str();
1305 ASSERT_EQ("3\n1992 1996 2000 ", ans);
1306 }

引用了 luogu::P5737::main().

◆ TEST() [138/142]

luogu::TEST ( P5738  ,
case1   
)

在文件 luogu_test.cpp1308 行定义.

1308 {
1309 istringstream in("7 6\n4 7 2 6 10 7\n0 5 0 10 3 10\n2 6 8 4 3 6\n6 3 6 7 5 8\n5 9 3 3 8 1\n5 9 9 3 2 0\n5 8 0 4 1 10\n");
1310 auto out = ostringstream();
1311 P5738::main(in, out);
1312 const auto ans = out.str();
1313 ASSERT_EQ("6.00", ans);
1314 }

引用了 luogu::P5738::main().

◆ TEST() [139/142]

luogu::TEST ( P5739  ,
case1   
)

在文件 luogu_test.cpp1316 行定义.

1316 {
1317 istringstream in("3");
1318 auto out = ostringstream();
1319 P5739::main(in, out);
1320 const auto ans = out.str();
1321 ASSERT_EQ("6", ans);
1322 }

引用了 luogu::P5739::main().

◆ TEST() [140/142]

luogu::TEST ( P5740  ,
case1   
)

在文件 luogu_test.cpp1340 行定义.

1340 {
1341 istringstream in("3\n"
1342 "senpai 114 51 4\n"
1343 "lxl 114 10 23\n"
1344 "fafa 51 42 60");
1345 auto out = ostringstream();
1346 P5740::main(in, out);
1347 const auto ans = out.str();
1348 ASSERT_EQ("senpai 114 51 4", ans);
1349 }

引用了 luogu::P5740::main().

◆ TEST() [141/142]

luogu::TEST ( P5741  ,
case1   
)

在文件 luogu_test.cpp1351 行定义.

1351 {
1352 istringstream in("3\n"
1353 "fafa 90 90 90\n"
1354 "lxl 95 85 90\n"
1355 "senpai 100 80 91");
1356 auto out = ostringstream();
1357 P5741::main(in, out);
1358 const auto ans = out.str();
1359 ASSERT_EQ("fafa lxl\n"
1360 "lxl senpai\n",
1361 ans);
1362 }

引用了 luogu::P5741::main().

◆ TEST() [142/142]

luogu::TEST ( P5743  ,
case1   
)

在文件 luogu_test.cpp1402 行定义.

1402 {
1403 istringstream in("4");
1404 auto out = ostringstream();
1405 P5743::main(in, out);
1406 const auto ans = out.str();
1407 ASSERT_EQ("22", ans);
1408 }

引用了 luogu::P5743::main().