QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#588190#9245. Bracket Sequenceucup-team3719WA 1673ms863324kbC++235.2kb2024-09-25 05:36:452024-09-25 05:36:46

詳細信息

Test #1:

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

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: 1673ms
memory: 863324kb

input:

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

output:

807252937
777070174
36125373
122104482
597950507
428454495
215492732
202242021
392529556
736028324
426329153
994048221
315566541
444655931
76394527
216715407
325177679
990267916
508481115
302716489
498728925
1522883
138655731
78253278
891957159
483119055
605305965
913333742
340780822
793112780
17939...

result:

wrong answer 2nd lines differ - expected: '333653009', found: '777070174'