QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#571279#9315. Rainbow Bracket SequencekmsgkWA 1ms3676kbC++203.4kb2024-09-17 21:40:572024-09-17 21:41:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3 2
1 2
1 2 2 2 1 2
3 1 4 2 2 1
3 2
2 2
1 2 2 2 1 2
3 1 4 2 2 1

output:

9
-1

result:

ok 2 number(s): "9 -1"

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3676kb

input:

50
8 6
0 2 2 0 3 1
3 5 1 1 5 3 5 2 3 2 2 1 2 2 4 6
998133227 879226371 59632864 356493387 62611196 827258251 296576565 204244054 812713672 780267148 614679390 447700005 102067050 544546349 116002772 761999375
1 1
1
1 1
343766215 374461155
3 1
2
1 1 1 1 1 1
796323508 303640854 701432076 853325162 610...

output:

5220751523
374461155
1649648670
1965446811
2201471991
-1
831452391
2596974815
1093935906
1386497961
545706543
3658675327
2231197660
758225925
0
3231024589
-1
989266948
5808498116
1345740508
-1
1988904333
3028024811
999388067
5751395565
0
1375278074
-1
4236865447
0
883992368
839769227
-1
3899922281
-...

result:

wrong answer 1st numbers differ - expected: '-1', found: '5220751523'