QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#629420#9245. Bracket Sequenceucup-team4744WA 664ms109560kbC++203.3kb2024-10-11 11:27:452024-10-11 11:27:45

詳細信息

Test #1:

score: 100
Accepted
time: 11ms
memory: 88016kb

input:

5 20
(()()
1 1 2 1
1 1 3 1
1 1 4 1
1 1 5 1
1 2 3 1
1 2 4 1
1 2 5 1
1 3 4 1
1 3 5 1
1 4 5 1
2 1 3 1
2 1 4 1
2 1 5 1
2 2 3 1
2 2 4 1
2 2 5 1
2 3 5 1
2 4 5 1
1 1 5 2
2 1 5 2

output:

0
2
2
5
1
1
3
0
1
1
3
6
16
1
2
7
2
1
2
3

result:

ok 20 lines

Test #2:

score: -100
Wrong Answer
time: 664ms
memory: 109560kb

input:

100000 1000000
)())))))())()()()(())))()())))()))))())))))()(()()))()()))((()()))()))((())(())())()(()))))()))(()()()()()(())(()((()))()((()(()))()))()))()()))(())))()()(()(()())())((()((()((())()(()()))())(())())())))))))((())(((()(())())))(()(((())())))(((((((((()))()())())(()))(())()()()()((()())...

output:

827235860
740121901
64430291
462553686
608792116
544032268
979724558
431315164
862120010
977534955
56932211
918378654
490998889
549876335
491109820
678959109
566013840
912824234
613602938
227639282
157300309
624208215
48226798
653505031
642282639
378159449
925883026
101959661
316559915
307777003
602...

result:

wrong answer 1st lines differ - expected: '807252937', found: '827235860'