QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#853259#9732. Gathering Mushroomsucup-team3727#WA 75ms4116kbC++206.5kb2025-01-11 16:21:292025-01-11 16:21:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 75ms
memory: 4116kb

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
127
268
17
84
759
35
14
1092
1
228
2422
168
360
160
9
2424
1984
220
228
587
3
3486
1
796
65
235
272
600
2912
40
495
20
27
140
768
1635
362
68
96
-3
288
29
218
16
-74
395
1782
140
40
227
107
19
1598
205
32
522
672
20
204
32
632
1962
42
21
885
4
1539
196
420
11
654
619
156
1
511
40
17
809
250
616...

result:

wrong answer 2nd lines differ - expected: '260', found: '127'