QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#853877#9732. Gathering Mushroomsucup-team2818#WA 40ms20136kbC++143.0kb2025-01-11 19:54:252025-01-11 19:54:34

详细

Test #1:

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

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: 40ms
memory: 20136kb

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:

2874
331
254
26
84
759
126
30
1040
1
2493
2422
168
348
298
324
1472
2144
220
228
1107
9
3486
1
612
101
340
158
597
2134
32
495
40
128
140
648
1635
702
72
96
90
288
29
588
16
234
445
2523
140
40
477
1197
19
1948
1434
32
522
633
20
390
28
2204
1938
42
21
893
4
1407
196
884
11
2117
829
720
1
458
40
17
...

result:

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