QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#298985#7901. Basic Substring Structureucup-team2952#TL 3ms15936kbC++202.7kb2024-01-06 16:25:202024-01-06 16:25:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 15936kb

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
Time Limit Exceeded

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:

100
152
430
47
279
80
370
436
393
155
281
313
230
528
402
123
608
683
672
673
172
255
451
341
216
448
314
624
240
373
362
518
464
484
670
617
344
390
796
454
613
320
365
506
827
956
917
1007
956
867
998
1039
932
1063
376
1086
688
1098
395
715
658
934
1238
684
1267
898
1124
433
1113
1334
1139
562
101...

result: