QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#869535#7745. Trapping Rain Waterucup-team5077#WA 266ms16204kbC++173.6kb2025-01-25 10:55:292025-01-25 10:55:30

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 16200kb

input:

2
6
1 2 3 4 5 6
2
1 2
3 3
5
100 10 1 10 100
1
3 100

output:

1
4
180

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 111ms
memory: 14156kb

input:

1000000
1
243315
1
1 211072
1
611907
1
1 931483
1
570785
1
1 223585
1
728162
1
1 547207
1
986415
1
1 479472
1
679456
1
1 889033
1
885718
1
1 118339
1
214466
1
1 464451
1
222854
1
1 70138
1
393099
1
1 909835
1
73671
1
1 100066
1
148162
1
1 110510
1
142367
1
1 58777
1
87989
1
1 684723
1
630453
1
1 719...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 1000000 lines

Test #3:

score: -100
Wrong Answer
time: 266ms
memory: 16204kb

input:

500000
4
88702 934403 687350 528632
3
1 482595
4 331839
4 890431
1
80653
7
1 758092
1 691959
1 809872
1 96403
1 84281
1 713083
1 474452
1
664273
10
1 353641
1 827527
1 998495
1 749722
1 274869
1 974568
1 425227
1 59445
1 966182
1 558246
1
926871
9
1 791338
1 215107
1 534658
1 84624
1 331235
1 37824
...

output:

0
173121
173121
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
509678
509678
509678
509678
0
0
0
0
0
0
174868
174868
333931
333931
288889
288889
440773
1872642
1872642
1311950
1311950
1311950
461966
181899
929389
815797
587291
808582
808582
0
20...

result:

wrong answer 3rd lines differ - expected: '247053', found: '173121'