QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#568040#9315. Rainbow Bracket Sequenceucup-team2880WA 1ms3836kbC++203.4kb2024-09-16 15:01:382024-09-16 15:01:38

詳細信息

Test #1:

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

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

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
2351080746
3586992990
2649098145
-1
1352480010
2539318868
1093935906
4965810479
545706543
4600692243
2231197660
3107528418
4590521997
5701908250
-1
1194080633
6403585429
4118705917
-1
4230243225
3973549649
2615588023
5751395565
6182429100
7767681633
-1
5054275471
1467678317
8839...

result:

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