QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#571250#9315. Rainbow Bracket SequencekmsgkWA 1ms3864kbC++203.4kb2024-09-17 21:26:552024-09-17 21:26:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3684kb

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:

3571506143
374461155
2351080746
3678982693
2237625252
-1
1378573195
2596974815
1093935906
4238603864
545706543
4094275923
2064784559
3139944544
3036404332
5069461335
-1
1831202593
6488101105
4346841691
-1
3619382701
4124699809
2174604761
5572382979
6350958028
6297906643
-1
4698757538
1467678317
8839...

result:

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