QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#570383#9315. Rainbow Bracket Sequenceucup-team4269WA 1ms7764kbC++173.5kb2024-09-17 15:34:142024-09-17 15:34:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0ms
memory: 7712kb

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:

-1
343766215
1649648670
1812906175
-1
-1
831452391
2539318868
1013080942
1097019708
-1
-1
2231197660
758225925
0
2812012416
-1
841935645
5689642167
1345740508
-1
1988904333
-1
999388067
fu huan

result:

wrong answer 3rd numbers differ - expected: '2351080746', found: '1649648670'