QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#552042#9245. Bracket Sequenceucup-team311#WA 1592ms84616kbC++236.0kb2024-09-07 20:01:122024-09-07 20:01:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 1592ms
memory: 84616kb

input:

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

output:

796105740
383218235
901220679
869826794
938085732
223133390
281422813
133997554
676252530
726035240
793198964
745628906
804731747
457904583
734976987
685078465
950451896
411591392
468516032
72493326
87555135
478745
61462113
327401297
636170771
410675462
971084850
333944597
191855989
255928460
222982...

result:

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