QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#853674#9732. Gathering Mushroomsucup-team3634WA 79ms3888kbC++1747.8kb2025-01-11 18:07:422025-01-11 18:07:50

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3700kb

input:

3
5 3
2 2 1 3 3
2 5 1 2 4
5 4
2 2 1 3 3
2 5 1 2 4
3 10
1 2 3
1 3 2

output:

41
45
14

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 79ms
memory: 3888kb

input:

6000
19 48
18 19 18 19 11 9 15 19 12 18 11 18 9 18 9 18 19 11 15
12 14 18 8 1 3 19 5 13 14 15 2 14 5 19 2 19 12 9
15 23
3 1 1 3 6 1 4 1 1 6 6 4 12 4 6
14 1 8 8 6 6 12 14 6 8 5 7 14 2 5
9 140979583
4 5 8 9 2 7 6 8 2
8 9 4 6 9 2 4 7 8
4 976357580
2 3 1 3
2 1 1 4
6 508962809
4 3 4 3 4 4
4 5 4 5 5 6
13 ...

output:

2610
564
278
18
74
589
103
34
1092
1
2079
2714
147
360
338
720
2424
2520
280
217
1107
9
2739
1
796
81
553
1424
590
3016
32
312
40
81
154
665
1361
972
50
158
253
127
30
430
16
474
275
2828
159
28
393
1470
19
2126
823
32
704
606
20
414
32
1625
1966
36
21
897
4
1539
148
420
11
1627
1219
2598
1
413
26
1...

result:

wrong answer 1st lines differ - expected: '3420', found: '2610'