QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#299227#7901. Basic Substring Structureucup-team1348#WA 21ms5180kbC++206.5kb2024-01-06 17:55:062024-01-06 17:55:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 5172kb

input:

2
4
2 1 1 2
12
1 1 4 5 1 4 1 9 1 9 8 10

output:

15
217

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 21ms
memory: 5180kb

input:

10000
8
2 1 2 1 1 1 2 2
9
2 2 1 2 1 2 1 2 1
15
2 1 2 1 1 1 1 2 2 1 2 1 2 2 1
2
1 1
10
2 1 1 1 2 2 1 1 2 2
3
2 1 2
11
1 2 2 1 1 2 1 2 2 1 1
14
2 1 1 1 1 2 1 1 1 2 2 1 2 1
12
2 2 2 1 2 2 2 1 1 2 1 2
4
2 1 1 2
8
1 2 2 2 1 2 1 1
8
1 1 2 1 2 1 1 1
6
2 1 1 1 2 2
14
2 2 1 1 1 1 2 2 2 1 2 2 1 1
10
1 2 2 1 1...

output:

94
127
347
3
211
9
265
363
278
15
95
113
58
351
225
3
340
357
376
316
3
19
122
66
10
75
37
257
11
63
28
85
83
98
242
190
21
48
269
63
102
20
24
67
311
362
264
297
351
281
319
276
218
312
3
330
54
328
3
69
32
146
305
39
329
90
241
3
164
345
250
20
155
3
358
393
391
80
264
358
20
54
21
279
3
20
351
38...

result:

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