QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#550801#9245. Bracket Sequenceucup-team3807#WA 811ms87424kbC++143.6kb2024-09-07 14:19:502024-09-07 14:19:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 811ms
memory: 87424kb

input:

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

output:

-1239420276
-1555611120
604043356
-757875599
212200888
-25193403
143055520
-457439854
1765064368
2027959592
1031781528
-1459378470
-1646094306
1980077973
-2058326016
1651888583
-1868909094
-664848044
1796628965
-1863062267
-540710559
1522883
467154314
-1206502926
323296110
2126032750
1287147302
1426...

result:

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