QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#564475#9245. Bracket Sequenceucup-team3612WA 904ms310244kbC++233.0kb2024-09-15 03:40:032024-09-15 03:40:03

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 20012kb

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: 904ms
memory: 310244kb

input:

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

output:

807252937
194758350
162932609
122104482
597950507
792318148
832700079
598943493
392529556
736028324
426329153
586391115
315566541
444655931
76394527
216715407
879837552
294305800
193802847
302716489
498728925
1522883
188652452
78253278
241333461
597184773
605305965
695649323
340780822
22937722
96147...

result:

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