QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#854678#9732. Gathering Mushroomsucup-team3612#WA 16ms9836kbC++233.6kb2025-01-12 05:18:212025-01-12 05:18:21

詳細信息

Test #1:

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

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: 16ms
memory: 9836kb

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:

3420
260
250
23
74
701
126
30
1092
1
1347
2974
129
360
326
303
2424
2520
220
225
915
9
3556
1
796
89
425
272
495
2602
32
294
36
125
126
659
1411
729
68
108
253
148
27
534
16
462
309
3024
147
19
377
1341
19
1953
708
29
522
672
18
390
32
1595
1865
35
21
885
4
1539
196
420
11
1786
983
3253
1
638
38
17
...

result:

wrong answer 3rd lines differ - expected: '254', found: '250'