QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#537370 | #6454. Unbalanced Parentheses | ucup-team1005# | AC ✓ | 13ms | 4696kb | C++20 | 2.1kb | 2024-08-30 11:11:43 | 2024-08-30 11:11:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3684kb
input:
4 1 ((() 480 617 -570 928
output:
480
result:
ok single line: '480'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
4 3 )()( -532 870 617 905
output:
?
result:
ok single line: '?'
Test #3:
score: 0
Accepted
time: 4ms
memory: 4112kb
input:
77943 7851 ())()(()))(()())(())()()()(((()(()())(()(()()))(()())((())))(()(())()())(()(())()()((()))()(((()))()((((((((()())))()((())))))((())(()()(())((())(((()()(()()()()()())(()(()()())(((()))(())))()))(())))((()))((()((((((()((()(()((()()))(())((()(()))()((()))(((()((()(((()((()))))(())))(()())(...
output:
-19567394
result:
ok single line: '-19567394'
Test #4:
score: 0
Accepted
time: 2ms
memory: 3996kb
input:
46462 26066 ))(((()())))()))))))()()((((((())))))(()(()(()))))(()()()))))))())()()(()))(()(()(()()()))()(())((()((())(())(()((((())((((()())(())))(()()()))()(())())((()((()())))())())()(()(()()(()(()))()())((((()())(())))()((())))()))())(()())((())()(((()))(((())))))())((())))()(()(()())(()(((((()()...
output:
?
result:
ok single line: '?'
Test #5:
score: 0
Accepted
time: 5ms
memory: 3960kb
input:
32132 1160 )(((()()))))())))))()()()))))()))(()()(()(()()()(())(())))(()(()))))())))))()()())())(((()))()()())))(((()())())))))()(((())))())()()(((()(((())(()(())(()()(()()()))))()(()()(())(()()(((())()(((((())((()(())))))(()(())))))())(())(((()))(())(()(((((()))((()))))))((()()(()()))(()())))(()(()...
output:
-7957990
result:
ok single line: '-7957990'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
34137 22409 ())(()(())))()(())(())()))))(((()(()()(((()(()))((()())(()())())))))))()()())))((())((())((((()(()))))()(((())())))()(()))))())(()()()()(())(())(((((())()())))))))())())(())())())((()))()((()()))()()()((())))))()))(()))())(((()())(()))((()((((()()(()(()((((())()(())((()()())(((()(()))()(...
output:
-8547296
result:
ok single line: '-8547296'
Test #7:
score: 0
Accepted
time: 3ms
memory: 3988kb
input:
58541 27353 )(()())(()())(())())(((())((((()(())(())(()(()()()(()(()(())(((()))()))())()()()(())())()))(()((()))((()))())(()((())))((()()(((()))))(()((((((())()(((((())))()(((())(((()()((()()))))))()()(())(()()(()))())()()(()()()))))))))((()(())(()((()(()(((())())())()(((())(((()((()()(())())()))(()...
output:
-14677196
result:
ok single line: '-14677196'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
2467 425 (((()((((()(()))(()(()(()(()((())()())()))((((())(((()(()(()()(())))())()(((()))((()()))))())()))((((()()(()())(()))(((())(())(()(()(()()()((()))((()((())()())(()(()())())()())))))())())((((()((()))))))()))))()())))(((()))()(()()()(((((())()))))((((())((())(((()(()(()))(()((((()()(((()())((...
output:
-608851
result:
ok single line: '-608851'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
3335 1732 )()((()(((()((())((()()))(((())((()))(((())(()())))((((()))())))()((())))(()()()(()(()(((((()))))()()(((()())(())()(()(()()()(())))((()))()()()(()()))()(())))())())(((((())))))(((((((())()()(((())(())())))(()(((()()(((()())(((()())(())))()))())(()))())))()()((((()()()(()())((()()())(()))((...
output:
-809096
result:
ok single line: '-809096'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
1674 818 ))(()())(()(())((()())(()(())((()))))))))((()))))(()()())((())(((((((()))()))))))()()(((((((((()()))())((()(((())))))()())((())()(((())((()()()(((())(()(()(()()(())(()())(()())(())(((((())((()((())))))(((()))(()))()((())((()())()))()))()()()()((()()()))))((()))(()(())()))()(())))()()((()(()...
output:
-18826
result:
ok single line: '-18826'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
18079 9186 ()()))((((())(()))(((())()((()((()(()()))())()(((())()(()()())())((((((()())))(((()(()(()))((())())(((())()))(())()(()()())))(()())(()())(()())()))())())))))))(())())(())(()(()()))(())(()()))(()))))()((())(())((()((()())))))()()))((((((()))(()))))))())(()((()()((((()((()))()))((()))((()()...
output:
-4487198
result:
ok single line: '-4487198'
Test #12:
score: 0
Accepted
time: 2ms
memory: 3820kb
input:
26721 6992 ())))))())))()))))()(())(())(()())()())()()(()()(()))((()))(()))))()()))()())((((()))((())())))))(())))())()))())((((((())((((())(()))))()())))()())(()((()(())())))())()((())(())(((()(()())(()()())))()((((((()((((()())())(()))()))()))(()()((()())())(()((()())((()(()((((()()))())()()))))()...
output:
-6715606
result:
ok single line: '-6715606'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3908kb
input:
34713 8968 (())()(())()))()((()((()()())()))(())((((()))()()()()(()()()())))(())())(())(()((())()()(()))))))(())())))())))()((()(()()))))((()((()))))())(((((()))))))()))())((()))()))())())))(()()((()(()))))())(((((()()())))())((()))())()((((()))()(((())))))()()(()))))(())()))))))())(())()((((()(()()...
output:
-8675775
result:
ok single line: '-8675775'
Test #14:
score: 0
Accepted
time: 4ms
memory: 4024kb
input:
76781 487 ()(())))(()())(())(())()())))))()((()())(((((()(()())()))()(())(()())()()()))()())()())())()(())(())((())()(()())(((())))()))))())())(()))()((())((())))())))))())(((())(())()()))(())()((()(()(((((()((((())(((()()(())()(()))((((((()))(())(()))((()(())((()())()()(((())(()(((((()()(()()))))((...
output:
-19217500
result:
ok single line: '-19217500'
Test #15:
score: 0
Accepted
time: 5ms
memory: 4116kb
input:
92711 69896 ()(((((()(()(())())))(((()((()())(())(((((((())(()()((((((()((((()))(()(()(()((()(((())())((((((()))()(())))))((()(()()()))(()()(((()(()(()()((()()((()())())(())))(()(()))()()))()))))()()(()(()()(()())))()()(()())()))))()()()))(((()))(()(()())))))(((())((()))(((())(()))(()(())))))))))()(...
output:
-23116096
result:
ok single line: '-23116096'
Test #16:
score: 0
Accepted
time: 7ms
memory: 4384kb
input:
79032 11877 (())())))(((()(()))(((())()()()()())(()(((()((())()(((((()))()(()()((())())())(()()))()()()()))()))))((()))()(((((((()()))()()))()(()(())())()(((()))()))(()())(())()(()(()())(()((()()())()((()(())))((())((()(()())))(())())())))))(()((((((()(()))(((())()()((())(((()()(((()((()))())()()()(...
output:
-18162127
result:
ok single line: '-18162127'
Test #17:
score: 0
Accepted
time: 3ms
memory: 3804kb
input:
19166 5815 )))((((())))((()(()()()())())(()((())()((((()(()(()))))()))(((()))))))(()())((()()())((()))(()(()(()(()())(((()((()))(()()))((())(()()(((()(((((((())))))))()()))(()((((()(()(())()(()((()(()()(()())((())((()()((()()((((((()()(()()())()))))))))()))(((())(())()()())())()))()())(((()())((()))...
output:
-3186018
result:
ok single line: '-3186018'
Test #18:
score: 0
Accepted
time: 3ms
memory: 3972kb
input:
52533 10556 )(()))())(((()(((()))()()(()()(((()()()(()()((())))))())))((()(())()((()()(()(()()()(((())((((()(())()((()((())))()(())())(()(()(()))((()())(())))))(((())()())))())()(((()()(()))()((((()((((())()())((())()((())(()())))(()()(()(()))()())))())()))()))())(()))))))))()(((()))()(((())()())())...
output:
-13097404
result:
ok single line: '-13097404'
Test #19:
score: 0
Accepted
time: 5ms
memory: 4200kb
input:
96135 5793 (((()((()()(()())))())((()()())()(()()(())())()())()())()))((())(((((((())))(())(()))())((()((())))()(())))(()))((())))()())())(())))()()))()())((())()())()(())((((((((()))(())()(())(((())(()(((())(((())())()()(()()())))((((()))())))(()(()((()))))())()()())(()))()))))()))()())()()))(()(()...
output:
-24067204
result:
ok single line: '-24067204'
Test #20:
score: 0
Accepted
time: 2ms
memory: 3856kb
input:
33477 22616 ())()())()()))))(()()())))((())(()((((()(())()()())(()))(())())()()))()((()((((()()()))())()()))(()((())))())()(())()(()(()()((())))(((()))))())())(()))()(())())())())()(())())(((((())(()((())())())))())()()(()))))())())()))))(())((())(((((((()))(()()()()(()()()))((((((())())(())()(()(((...
output:
-8332043
result:
ok single line: '-8332043'
Test #21:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
21081 19166 ())(())))))((((())()((())()()))(()((())()((())((()))()())))((()))((())))))(()(()())(((((()(())())(())()((()())))())()((((())())()(()()(()(((())(((()()())())))))(()(()(()())))))()))))())))))))))()()))))())))()))())))(()()())((())()((((()(((()()((())((())())(()((()())(()((()(()()(((()))())...
output:
-5255315
result:
ok single line: '-5255315'
Test #22:
score: 0
Accepted
time: 2ms
memory: 3892kb
input:
25250 12205 ())((())()()(()(()()))((()((())(((((()(()(()((((())(()))))()())(()())(())))))((((()((()()(()))))))((()(())))))()))(()())))())((()))(()))()())(()(()())((((()((((((()(()(())(((())(()((())(())))((()))(())))(()(((()))))))(())()))))())))))()())((())((())()(()()))(((((())((()(()(())(())()(()((...
output:
-407368
result:
ok single line: '-407368'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
2885 2834 (())))))()(()(())()))())()(())())(())(()()))())(()))()(((((()))()(((((()(((()(()))()((())()(()()()()((()(()()(()((()))))()()()()(())))()))(())(())()(((())(())((())()))(())()))))()(()())())((())(())())()()())())()()))(((((()(()())()))(()))))((()))(()))))((()(((()))(()((()))()()()))(()((()((...
output:
-715878
result:
ok single line: '-715878'
Test #24:
score: 0
Accepted
time: 3ms
memory: 4084kb
input:
61317 4008 ()(()())))())(())))((()(())(()()())())(((()())((())))(((()))((())())(()()())((()(((())()())(())()()())()((()())()(((((()))(((())()()((())((()()()(()(()()))((()())))()())((((((())))(())())()(((((((()))(((()))(((())())()())(()(((()((())(()((())(()(()())(()(())(()(()((()()(())(((()((((()(())...
output:
-15264578
result:
ok single line: '-15264578'
Test #25:
score: 0
Accepted
time: 4ms
memory: 4068kb
input:
84548 79155 )))(((((()())()(()(((()))()((()))((((((()())(()((()())()(())))()))()())))((()))(()()()((()(((((())))()))((()())))))()())()()(())(()())(()(())()))))))(()()()(((()(())())()(((()(()(((()((()()())(()())()()))((()())()((((())(())))(()(()))))()(())(())(()()(())))((((()()(((((())(((()))())()())...
output:
?
result:
ok single line: '?'
Test #26:
score: 0
Accepted
time: 3ms
memory: 4060kb
input:
67361 14450 )())((())(()(())()))()(()(())(()()(()(()(()(())(()()))())(()()(((())))(()))(()()(()))((())((()))()()(())()(()(((()(((()(((((()((()(((()))))()()()))(())()(())()))(((()(())())))(()(()()()()))))))()()))()(()()(((()))(()()(()))()))))()(()))()())(()))))(()))(()()()(((()))(((()(()())))))(()(()...
output:
-16906457
result:
ok single line: '-16906457'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
26915 1486 ()())()))()())))(((()(())((((()(()())(()())())()()()())))))))((())()(()()()(((()))))())))))()()))))(()(()((())()((()()))))((())))))((()))))(((((((()()(((())))))))()()))((())((()))))((())())))))))())()(()(()()((()()))()()(((()))())((()))(()))()()))((())()(()(()))))(()))(((())())))(())))(()...
output:
-6799211
result:
ok single line: '-6799211'
Test #28:
score: 0
Accepted
time: 3ms
memory: 3976kb
input:
57871 44860 ()(())((((()(())()(())(())())))))(()))()())(()()((())()()(()((((()())())))()()))((()(()))((((()))))))(()()(()())())())))(((())(()())((())()(())())))(((()(()()()(()()())((((())))()))(((()))()))())))(((())(((())()())()())))))(()))(()))(((())))()))))(())())))((()()))())))(()(())(()(()()()((...
output:
-14453050
result:
ok single line: '-14453050'
Test #29:
score: 0
Accepted
time: 4ms
memory: 4084kb
input:
78121 29038 )(((()(()(()))(((()())()))(())(()(()(((((())())(())()(()(((((((()((((()))(())(()())())(())())(())()(()((()())))((()))(())(((()()))())))))()(((())())))())((((()))(())()))))(())(()(()((())))()((((()((())()())(()()())))))(()()())))())()(()(()))()((()()(())(())()())(()(())()))()(()())((())))...
output:
-19412245
result:
ok single line: '-19412245'
Test #30:
score: 0
Accepted
time: 4ms
memory: 4068kb
input:
69948 35198 ))((((())(()))(()())))(()))())((())(((()))(()())((()()(())())())(()())(())()()))()(()))())())((()(()))(())(()))))))))))(()(()))))))())((())))((()()))((()())(((()()))))()))())()()(()()(((())(())()((((()((())())()(((())()))(((())(()(((()()((()((((((()))()()()((()))())()())))))(((((()())(()...
output:
?
result:
ok single line: '?'
Test #31:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
24575 11577 )((((((()))(((())())())(((()(()))()())))))())))()()))(()((()()))()()((()()())))()()(()()))))()()((()(())())(()(((()()((()()(()((())(()))()())(())()()))())((()(()))((()((((())))())()())(()(())()()()(((())()(()()))(()()(())(((())(((()((()())))()())))())))())((())()(())(()())())((((()))))()...
output:
-6137090
result:
ok single line: '-6137090'
Test #32:
score: 0
Accepted
time: 3ms
memory: 4060kb
input:
56864 37867 ()))()())()))()()(((()()()(()()())(()()))()()))(())()))(()()()(()(()(((((((()()())()))()((()))))(((((())(())(((())())(())))()())())(())()()((()()))))(((())()())()(((((()())))(()()((()()))()()))(()()))((()))(())))(((())())(()(())))((()())())((()))(())))(()()()())))()()(()())(()(((())()()(...
output:
?
result:
ok single line: '?'
Test #33:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
43759 22461 (())))())))()((()()()(())()())((()))())(((()(()(()()())()()))())))))()))((())())(()()())(()))((()(()(()))()((())(()(((((((())((((()()()()()()(((((()(()))(()))))()((()()))((((()((()(()(()))()()((((((())(()(()(()()()()((()(((()(()(((())()())()()(()()())())((())())(()(()(())(((()))((()(())(...
output:
-10926129
result:
ok single line: '-10926129'
Test #34:
score: 0
Accepted
time: 2ms
memory: 4244kb
input:
88422 88094 )(())())()))))((()()()()())(())))(()(()(())((()))(()(((())(())()))))((()))((()())(()((((((()(((()(())((())()((())((()))(()))())())((()()(())()))(()(()())))()()((()()((((())(())((()((((((()((()()()((())))))((((((((()())))))())))()()(())()))))(()))((())()))((()((()()(()((()()))(((())()()))...
output:
?
result:
ok single line: '?'
Test #35:
score: 0
Accepted
time: 8ms
memory: 4220kb
input:
57532 4199 )()())(((()))())(()())))()())))))()())(())))((()()))((()())()())())))()(()(())()(())(()((((()))(())()(()(()))()((()(()((()())()()(())()((((())((())(()))(())()()))())()()(((()(())(()()(()()((((((()))))()))(()())))((()(()((()())()(())))())()()(((((()))))(())()())(((())()))))()())(((((()((((...
output:
-14071618
result:
ok single line: '-14071618'
Test #36:
score: 0
Accepted
time: 6ms
memory: 4080kb
input:
40974 19844 )()()()))(()))(((((()(()))()())))((()(()())))(()(((()))(((()())())()()())()((((((()))()())))))((()())()(((())))(()((()()(())))(((()(()()((((((()(()(()))())()()()(())())))))())))))())()()()()())((())()((((()))(((((()()))))((()))(((()(()())((()(((()((((())((())((((((()()((())())(()((())(()...
output:
-643625
result:
ok single line: '-643625'
Test #37:
score: 0
Accepted
time: 4ms
memory: 4068kb
input:
74011 29507 )())((())(()())))(((((((((()())())()))()((((((())()(())((((()))()))(()(())(())()((())()()()()(()(())(())()))((()()())()(())))))()())())(())()())((((()())))((((()((())()())()())((((()()(())())))(())((()(())((())((()))((()()((())()))(()(((((()))((()()((())))((())()(((((()()(()()((()))(())(...
output:
-18400683
result:
ok single line: '-18400683'
Test #38:
score: 0
Accepted
time: 8ms
memory: 4236kb
input:
52500 6596 ())(())(((((()())))())))))())()(((()(((())))))()((()))((()()))())))()()())))(()(())()()(((()(())())(())()()())))))(((()()()())())())))((((()))()()(((((()())()))())(()()))())())()(()(()((()())())(()))((()())))()())())))()))()))())))(()(())))())))))()(()))()()((())(())))))()))(()()))()))(()...
output:
-12335506
result:
ok single line: '-12335506'
Test #39:
score: 0
Accepted
time: 3ms
memory: 3912kb
input:
47583 4365 )()()))()(()(()))())()((()))((()))))))()))(((((((((()())()(()()())))())))))((()())(()))(((())))())()))))))(()()((()())(()())()((((((((()(((()))))(()((()(()(()((())()(()()))((()()))(((()())((())(()(())((((((()()((((())(()))))(()(((()()(()))((((())()()))(()())))(()(())(())(()())()()((((()((...
output:
-11909005
result:
ok single line: '-11909005'
Test #40:
score: 0
Accepted
time: 3ms
memory: 3948kb
input:
54077 7242 ())())()((()))())))()(())()((()())()((())(())()()(((()()(()((())(()((()())()(()))(()))(((((()(()))()))())(())())()))())((())()()))()))))(())))(()))()())(()))(()((()()()))))(())((((()((()((()(()()())))(()(((((())(()))))(()()))(((()(()))((())((()))()))()(())))()()(()))())(()((()(((()(((((()...
output:
-13613762
result:
ok single line: '-13613762'
Test #41:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
18768 18322 ))(()(())(())(()))))()))(())(()((((()(((()((()(())((()))()))(()))))((()()()(()()())((()())())(()(()((()()()())))()))))()())())()(((())))())()()))(())((()((()()((()((())(()()))))((())((()((())()((()()())))(()))(()(()((()(())))((()(())((()))()))))(())))))())((()))(()(((()()((()()()()))()()...
output:
?
result:
ok single line: '?'
Test #42:
score: 0
Accepted
time: 7ms
memory: 4108kb
input:
46376 8168 ())()))((())((())(()()((()())((()((()())(((((()))(()))((((()))()))))(())()()()(((())(()(((()))(()((()))()))(())))))()()())(()(())(((()()()(()()())))))(((()(())))))())())))((((()((((())))()()))(()))))(()()((()))()())(()()((()())()())(((((()))(((()))()(((()))(()((()))()((()()(()())(((())))(...
output:
-10192771
result:
ok single line: '-10192771'
Test #43:
score: 0
Accepted
time: 4ms
memory: 4140kb
input:
53820 3390 )))((())))(()((()(((()()((())((((((()))()((((())())()))))()(()))(()(((()(()))((()))()))()(()))())()()())))))(())((())(((((((()(((())((()())))())))())))))))((()())((((()))(()))()((()()))()))()())())(()())())))()()))(())))()(()(())(())()()))(()((())((((()))(()))(()(()))())()())(()(()())()((...
output:
-13425621
result:
ok single line: '-13425621'
Test #44:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
16131 635 ()((()))(((((()())(()(()))()((()(()())((((()()()((()))))((())()()()((()()((())()((()()))()))((()((())(()()())(())(())()(((()(())((()(()))((()())())())((((())))((())()()(()((((()(()()()))())()()()()(())(()())(()(()((())()(()())((())((((((()(())(((())(()(()))))()((()(())))((())())((()(()(())...
output:
-4000488
result:
ok single line: '-4000488'
Test #45:
score: 0
Accepted
time: 3ms
memory: 3832kb
input:
22394 3654 ((((()))((((((()))))((()))()())))()()))())()((())(())))())(((())))((()))()((()(()()())()()(((((()(()(((((())(()))()))(((())))(()))((())()())((()()((()()(())))()()((()))))(())())()))((()))))()))(()(())))))()(()))()((())))()()(((()(()()(()()())(()()))(((((())()(()())))))(())()(()))((()())((...
output:
-5031601
result:
ok single line: '-5031601'
Test #46:
score: 0
Accepted
time: 4ms
memory: 4036kb
input:
30072 134 )))))(()))())))))))())(((())(((((((())(())()())((((((()()())))())((()(()(()(((())()))())()())(())))(((()())))()(()))())()()())(((()()(()((())))()()()()(((()()))(()(()))))(()(((()))(()()((((()()(())()((()(()())()))(()(()))))))())))))()()())))())(())(())())()(()))(()())((())))))))((((()))(((...
output:
-7590280
result:
ok single line: '-7590280'
Test #47:
score: 0
Accepted
time: 13ms
memory: 4548kb
input:
94858 12218 ()()(())(())())))((()())()()(()(()(()(())(()()((()()())))())))()))(())()((()(((((((()())(()())()))))())))(())((()(((()((()(((())(()((())))()))((()())())(((()())(())()))((()())((())()(((()))))))))(()()()((())()())((((()()((())()()))(()((()()))(()))((((((((()()))))(((()))((())((()()))())((...
output:
-22207718
result:
ok single line: '-22207718'
Test #48:
score: 0
Accepted
time: 2ms
memory: 4132kb
input:
84565 10644 )()()())())(()())))())))))(()))()()())(((()((())))()))))((((()))(()))(()(()((())))((((())()(()()))))(()())()(()(()))()()())()(((()))(((()(()))))(())(())())()((())))()())))(()))(())((()))))()()(())()))((((())()(((((((()))((()())()))()())()((((((())))))())(()))((())()()()(())(()()))((()()(...
output:
-21159696
result:
ok single line: '-21159696'
Test #49:
score: 0
Accepted
time: 11ms
memory: 4416kb
input:
75728 29879 (()()()())))()()))()))()))()))()((((((())))()())(())()()(((((()()))()(())(())))))(((()()())()())))(()(()(()(())()))())))()()()()()))()((())(()())))()()))())))()()(()())()(())(()((()())))()))(()((())))(()()))(())))())((()))((()))))()))(())()()(((((())(()()))()(()))())()((())))()))(()()()(...
output:
-7285045
result:
ok single line: '-7285045'
Test #50:
score: 0
Accepted
time: 2ms
memory: 3784kb
input:
13264 5465 ())((()))()())()(())())))(())(()()(()())))(((((()(())(((())()((()(((((())(()(((((()())))))(())()))(((()))))())(()(()(()))()(())())))((()(())(((()()))))())(())(((((()())((()(()()))())())()))()))())(()())()()))()(()()))((()()(()()((()())))(((())()((()(((()))))()(()))())()()(()())))()))))))(...
output:
-1086397
result:
ok single line: '-1086397'
Test #51:
score: 0
Accepted
time: 3ms
memory: 3984kb
input:
54859 51106 )())(((()()(()(())())))())()())((()))))))()())())((()))(()())))()))))(()())))((()()))()))())((((()))(((()))((()))()))((()))((((((()))())()(()(()))()())(((()())()(()(((())(((()())()(())))()()(())()))((())()(()())(()()(()()))))(((()(((()))(((())()()()(()((()()(())())))())())))(()))()((())(...
output:
-13669578
result:
ok single line: '-13669578'
Test #52:
score: 0
Accepted
time: 5ms
memory: 4128kb
input:
96013 44029 (()(())()((()(())((((((()))))()))()(()()))()))))(())(()())))))((())())))())))(())((((()(()))(())())((((())(((()))(())()())()())))()(()(()())))()))(()))()())))(()()()()(()(((()()))()())()))((((()(())(()()((((()((())()))(((((()))))(())((((()()((((()())))(()))()))())(())(()((())()())))(((()...
output:
-23882495
result:
ok single line: '-23882495'
Test #53:
score: 0
Accepted
time: 4ms
memory: 4072kb
input:
81108 66233 )(()))))((()((((()())))()(((())))((())(((())((()(()((((()))((()))))(()()()))((())()()()))))()())(())()(()((()()(())(()))()()((()))()())(((()(()(()))((()((()()((((()()(())(())())())()()))))()(()(((()())()))(()))))())())())((()))))(()))((()))((()))()()()(()()((()(())()()))((((()()))))(()))...
output:
?
result:
ok single line: '?'
Test #54:
score: 0
Accepted
time: 4ms
memory: 4200kb
input:
82181 24707 ((()(())()((((()(()(()())())(()()()((()()()(()((()()(((()))))())()(()()((((()()())())((()((())((())))))()(()()))((())())()(())()()))()((((())))))((((((((()(()(()((())()))()((((()))((()()(((((()))))))())))((()(()))())())(()))(((())(())())))(()())(()))))(()(()()))())()((()(()())(())()))(()...
output:
-20583260
result:
ok single line: '-20583260'
Test #55:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
39317 36095 ((((((()())()(()))))))(())(()()((()))))((()()))((()()()(()())(())(((())((())(((()((())((((((((())))()(((()))(())(()))(()(())()((()()))()))())(()(()(((()((()))(()(()(((((((()))(()()((())(()()((((((())())((((()())((()())((())((((((()())(()(()))))(()))(()(()))()(())))())((()()(((())))())()(...
output:
-9757570
result:
ok single line: '-9757570'
Test #56:
score: 0
Accepted
time: 2ms
memory: 3872kb
input:
40880 36649 ((((()())()((()))(((())(()()()))()))())))()())))(())))())((()()(((()()(())()(()((((((())()))(())(())()))(()))))((())()(()()((((()())))((()())))())))(()()((())))((())((())))))))(()))()((((())()()))))())))))())(())(())(()((()())))))())()())((())(()())(())))(()())(())()))()())(())()()))()))...
output:
?
result:
ok single line: '?'
Test #57:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
12657 745 ()()()())((()())(()(()(((((()(())(()()(()((())))(())))))(((())(()((()))))))(((()((((()()))))())()((((())((()()(()()(((()(()(()())))())))()))(()()(((()())(((()((())(()()))())()(((())()(())(()(())((()(()(()))())()()(())(()))(())(()()))()()))())(((())))(()())()))))())())()((((()((()())((())((...
output:
-3105079
result:
ok single line: '-3105079'
Test #58:
score: 0
Accepted
time: 5ms
memory: 4108kb
input:
91991 44694 ()()))()))))((())(())(()()))))(((()(()((())))(()((((())(()((())())(()()))())((((()())))((()))(()))())((((()))()())))()()(()())))(((((())))()(())(())()(()()))(((((((()()())())(()(()())))()((()()(((((((()((()))(())()((((())(())())))))()((()()))())(()))((()((())((())())()))))))))()()(()))((...
output:
-23065065
result:
ok single line: '-23065065'
Test #59:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
13039 7960 (())()))))))()(()()(())))())(((()))(())())((()()())))))))))(((((())))((()()())))((((()()())(((()()))(((((((((()()))()(((()(((())())))))))())()))))()()(()))())()()())(()())))()())(((((())((()))))()()(((()())((()(()()))((())))()))())()))((()(()(()((()()()))()(()((())))))()))()()))))()(((()(...
output:
-3248742
result:
ok single line: '-3248742'
Test #60:
score: 0
Accepted
time: 4ms
memory: 3976kb
input:
67972 62669 ()(()(((())((())(()(()))()())((()()((()()))(((())((()())))((()))))(((()))())((()))(())((()))()))())(()())(())()))((())))()(()())(()()((()((((())))((())())((()(()((())(())))())()()))))()(()(()(((((())())()))))()()))))()()()(()()))()))())))()(((()))())))()))(())())(((()()))())()))())((()()...
output:
?
result:
ok single line: '?'
Test #61:
score: 0
Accepted
time: 4ms
memory: 3840kb
input:
25318 844 )(((((())()(()))(((())))()))(())((()))()()((())))))(()((())((((()))()())))))())()))())())()(())))(()()(()())))(()()((((((((()((((()(()))(()((()()(()())))))(()()((())(())(())(())((()((((((((())(())((()))()()())(()))))(((())()()))))()))())))())))))(()())()))(((()()(()()((()(()))))(()()()))()...
output:
-6350707
result:
ok single line: '-6350707'
Test #62:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
52803 7950 (()(())((()(((()))))(()())()(()()())()(()(()())))(())))(())))(())((()))()))(((((()))))()())()))((((((())()))()()()))(((())()((((()())())((()(())))))))()())))))((())()()(())())()()))()()))())((()))()(((()()())(())())()()((((()))())()))(()())())))())((()((())()())(((()(())()()((())((())((()...
output:
-13304760
result:
ok single line: '-13304760'
Test #63:
score: 0
Accepted
time: 2ms
memory: 3784kb
input:
40770 20971 ))))(((()))())()()(()()(((())()(())((())()))())((((())())))()((())))()((())())())))(((()((((())()()(())())())()))))()))())())())))()))(((()()()))()()))))())))))(()))(()(()))(())()))()))((((((()()(())((()(()((()())()((())()()()))()()((())()()))(((()((((())))(())()()))))(()))((()())))(())(...
output:
?
result:
ok single line: '?'
Test #64:
score: 0
Accepted
time: 5ms
memory: 4240kb
input:
99697 79836 )((((()()())()(())())))))()())))((()))(((())())))((()(()(((()((((())()((((()()(((()((())))()))))(())(((()()()))(())))()()))))()(()())()((())((()(()(((((()))(()(()()))((())(((()(((((()(()(()))()())(()(()((()()()(()))((((())()(())()(()()))))))()())))()()())(())(())()((((()((()((()))())()()...
output:
-24766254
result:
ok single line: '-24766254'
Test #65:
score: 0
Accepted
time: 13ms
memory: 4600kb
input:
97560 26913 ))(((())))()))((())())((()))))())))())))())()())(()((())()))))(()()))))()()))()())((()))()((((()()))((((())))))))()((())(((())())(()))()()))(()((()(((((((())())))()))((()(()(((((((()()()()()))))()(()()())()()(((())()(((((()((((())(((()()()()())())())))()((())())()((()(()))()(()()())))(((...
output:
-17028965
result:
ok single line: '-17028965'
Test #66:
score: 0
Accepted
time: 6ms
memory: 4064kb
input:
41082 1352 (()(())))(())(()(()))(()((())))()(()())())))))))))()))))))))())()())())(()(()))()(((())()())))(()(((()(())))()(())(((()(()())())(()()))())())))))(((())(((())))((())(())())()())())()())()(()((())(()))()()())((())())(())((()())())(()(((()((()()(()))(())()(()))((((())))()(((()())))()))()))((...
output:
-10314586
result:
ok single line: '-10314586'
Test #67:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
4865 2331 ))())())())()())(())))))))))))((((()(()()))((())(()(()))()(()))((()(())))(()(((())())))()(())((())((()()()))))()))()))()((((((((((((()((()()))((()()))()(()())()(()((((((((())))()(()()()())((()()()()(()))))())()())(((()(()(())())))()))))))())))()))())(()()(())((()))))(())()(((()))))()))))))...
output:
-1249958
result:
ok single line: '-1249958'
Test #68:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
5072 3456 ()()())())))(())(()()(())((()()())(((()()))))))())()())()((()((())()(()))()((()())())((()())()()((()((())(()((()))())))()()))))(((()()(()))))))()()))(())()(((((((()())()(())())(((()()()()))(((()))(()(()(())(())((()(()(())()))((()()))(()(((((((()))()((()())))()()))()))((((()))))((((()())(()...
output:
?
result:
ok single line: '?'
Test #69:
score: 0
Accepted
time: 4ms
memory: 4092kb
input:
72969 9372 ())))()()((())((()((())(())())()()())()((()))()))()()()))))))))))())())(()((()(()()))(()))()((())(()())())))()(((())))())(())()((()))())(()())))()(((()(())))))()))))(()()(((())()()(()()))))))()()((()))))())))()(())((()))())())(())))(((((())())())()(()(())()((())))(()(())(()()()))())))(()(...
output:
-18261206
result:
ok single line: '-18261206'
Test #70:
score: 0
Accepted
time: 5ms
memory: 4204kb
input:
94123 30534 )()())((()(((())(((((())))(((()((()))(()))((()())))))()(((((((()((()()(((()((()))))()())()(())())()))(()))()(())()))))))))())()()))(()))(()())(((((((())()((()()()()(()()())())(())()(())(()()(()()(())))))())))()))()))(()(((((()()()((()())))))(()())()(()))((())()())(()))))((((()()))(()((((...
output:
-23714730
result:
ok single line: '-23714730'
Test #71:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
15439 360 (()(())((((((((((())))()))(()()()))(())())()(()())())(())())((()))(()()))))))(()))()(()((()())))((((((((()()(())(())))()(())())()(()((()))()()))))()()())((()((()))()(((()))(((()())()())()()())))()()())((()((()(()(())(()((()()())))(()(())))((()())()()((((())())((()))()))((())(()()))(())))()...
output:
-3887617
result:
ok single line: '-3887617'
Test #72:
score: 0
Accepted
time: 3ms
memory: 3912kb
input:
48889 39877 )))))())))(()())))((()(()())()(()((()(()(())))))()()()())((((())((((())(((()(((())(()))))(()))(())))(()(((())))(()))()))())())(()(((((())((((())))))(((())(()())())(()()(((((((((()((()(()))((())((())))()(()()(()())()(()()()))()(())((()()((()))(())())()((()))))(()((()(())))(()((()))()))))(...
output:
-12174978
result:
ok single line: '-12174978'
Test #73:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
40336 31646 ))))((((()))((())())(((()()())))))(()())(()))))()((())()()()))((()()((()()(((()))(()(()()())))(()()(()((())(((()(((())())(()()))()((()(()()())(((()((()()))())(())()))))(())()))(((())())()()(((())((())()()()))(()((())((()()(())()))(())))(()())))((()))(()())())()()()(()(())())((())))))()))...
output:
?
result:
ok single line: '?'
Test #74:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
4716 4377 )))((((()()(()(()((()(()))((()()(()((()())()))(()()()())))))(()(())()()(())))(()))()))(((())()()(()))()())))((()()(((((()(())))()))))((()((((())())()()))(()(())))(()))(((((()()(((())))())()())))(((())))))))()))(())())())())((())((((())()()())))))(()())(()))))))))())())(()()))((()))))((()((...
output:
?
result:
ok single line: '?'
Test #75:
score: 0
Accepted
time: 3ms
memory: 3856kb
input:
49111 983 (())()(()))(())())((()()(())(())())((((((()())()())(()))))(()(()()()(()())((()(()(()))((())())(()()()())()()(((()))())((()(()())))))((()))((((()((()()(())))()()(()()()(()))()((())(())))()()(()))((((())())((())()())(()(()(()(()))(()(((((()(((()()(()()(()()()))))(()()(()())))())()(((())(()((...
output:
-12247073
result:
ok single line: '-12247073'
Test #76:
score: 0
Accepted
time: 2ms
memory: 3836kb
input:
44711 44263 ()(((())()(())))((()()()(()((((()()()()((((((()((()))())()())))()))))))))(()(()()(((())(()))(((((()((()()))))))))())(())(((())))))))()))))))))((())))()))()()(((((((()())())(((()()()))))(((()((()(((()()((()))(()((()())))(()(())((()((((((((())))((((()()(()(()())((()((())((((())((((((()()))...
output:
-11213626
result:
ok single line: '-11213626'
Test #77:
score: 0
Accepted
time: 2ms
memory: 3800kb
input:
27912 19303 ))))))()())))()()((((((())(()))))(()()())(())((((())))((()))()()))(())())()()())(((((()()()(((()))()((((())))))((((((((()((((((((())(((()))((()()())))((())(((())()())))))((())((()))()))()))(()((())))()()))())(()((())((()(())))))(((())))))())))(()(()(((((((()())(()(())(()())((())(()()))()...
output:
?
result:
ok single line: '?'
Test #78:
score: 0
Accepted
time: 4ms
memory: 4100kb
input:
86153 85436 )(()))))())(()))))()(((()((()((()()(()))()))()()(()())(((((()())))(()))))((()()(())))))())(((((()(())())))()(((()))())(()))))(((()))())()(((((()(((()(()())()))()()((())(()()((()(()(()())((()()()())(()(()(()(()(()())((()(((((()))()()(()(())()()))()))())((())()(())))(((())((())))((((())()(...
output:
-21603577
result:
ok single line: '-21603577'
Test #79:
score: 0
Accepted
time: 2ms
memory: 3920kb
input:
46956 41982 )()))))()(((()()())))))()((((())(((()((((((())(((((()(()(((()((())(())))((((()(((()))((()(()((()(()))()()()))())))))())())((((((((())()()))(()))((()())()())((()(())(()(((((((((())((()))())()())))(()))(()()(((())()(((((()(()(())(()((()()()))()())))(()(((((())()(((()))()(((()(()()))((()))(...
output:
?
result:
ok single line: '?'
Test #80:
score: 0
Accepted
time: 2ms
memory: 3864kb
input:
38329 17154 )()()((()(())))())()((()((()()))(()())(((((((((()((((()(((((())()(()))))))()(((())(((((()))()(((())))())))(()))))(())))(()()))))((()(())))(())()()(()(())))(())()()()))((()((()(()()(())))))))()()()()((()()((()(((()()))(()))()((((()()())((()))(((())()(())())))))()(((()(((()()((((())))(()((...
output:
-9727803
result:
ok single line: '-9727803'
Test #81:
score: 0
Accepted
time: 5ms
memory: 4220kb
input:
99153 37551 ()))))(()))()))()())))))()(())(((()(()((((())))))(()(()(((())()))(())))(()))))())())))((())(())()(()))))())()))())()(())()(()(()()))())())()())))((((())))))))(())(())((((())))()(()())())())((((()()((())())()()()((())()(()(()(())()())()))))(((()))((()(((())())()()())(())(())(())())(((((()...
output:
-24958631
result:
ok single line: '-24958631'
Test #82:
score: 0
Accepted
time: 12ms
memory: 4568kb
input:
84702 14026 ()()()(())(()))))()))())()()()(())())())((()))((()()))())(())(((())()((()((((()()((((()())))((()(()())))()))((()))((()()))()(()))()((((()((()())))(()(()())))))(()(((((((())()))((()())))))((((())(()()()()())()))(())))))()))()()())))))((()()(())))))(()(())()()())()(()()))((()()(()((((())))...
output:
-18879860
result:
ok single line: '-18879860'
Test #83:
score: 0
Accepted
time: 10ms
memory: 4696kb
input:
98408 24768 ())())((((()()((())(())))))(())))))))(())((((()()(((())(()()())()))(()))()))(())()()((((((()(()(()))())))()((()))())(()(()))(())))))())()))))()())))((()(())(())()(()()((())()()()(()((())()((()((()((())((())((()(((((((((((()(((((()((())()))())()))))(()(()()()())((((()(())()())((()()(()(((...
output:
-18576447
result:
ok single line: '-18576447'
Test #84:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
88189 34518 )())))((()()))((())())))))()))()()))()()()(()((())))(())(()()))()())(())((())(()))()())))())((((())((()((()()()())()())()((()((()(()(()((()(())()(((())))()))()))))(((()))(()(()))()()))))(((())))((()())()))))()(())))((((()()())(((()()))())(())()))((())))()()(((()(((((((()))()))())())(((((...
output:
-21909095
result:
ok single line: '-21909095'
Test #85:
score: 0
Accepted
time: 4ms
memory: 3912kb
input:
23880 10208 ())())()))))((()()((()((())))())())()(()()))()(())))(())((((()))((()))()((()(()(((((())((()()))))())))((())()))())))()()()))())())((()())))()(()))()(((())(((((()())))(((((()(((((())((((()(())()())))(())()()(()()))()(()((()))((()))()()()()))))()()()((()))))))(())())))(()())))))()))(()((((...
output:
-1611498
result:
ok single line: '-1611498'
Test #86:
score: 0
Accepted
time: 4ms
memory: 4136kb
input:
80423 3486 )()))())()())))((((()())))))))()()(((()())))))))()))(((())()(()()((()))())())(()()))((((()))(()))((()))((()(((()))()(())((((())())((())(())(()(())))(()())))))(()(()()()))())(())((()()(((()))))))(())(((()))()))))(()))())()))())(((()(()(()()()))()(()((((())(()()()(())((()()(())()((()()())))...
output:
-20039496
result:
ok single line: '-20039496'
Test #87:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
15045 3298 (())(((()()((((())()(()()()))))())(()(()()(()()())(())(((()(((((()()))))(()()(((()((()))()()((()())))())((((())()))))(((()())()((()())()(())()()))))(())(())(()))(())(()(()))()))(()()()(((())))(())()())(((())(()))(()(()))())))())(())))()(((()(()((()()())))(())))))((((((())(()(((())((()(())...
output:
-3788880
result:
ok single line: '-3788880'
Test #88:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
8011 5097 (())))())())())()))(()(()()()((())()(()()))()((()))(()))()))()()(()())()()(()(())((((((()(())()))())))((((()((()))))()()(((((((((((((()(()())()))(()()())())))(()())(())())(()())((()())()(())(((())))((()(((())(((()()()))()))))())((())())())(()))(()))())(((()((()))))())()((((((()((((())()))(...
output:
-2012317
result:
ok single line: '-2012317'
Test #89:
score: 0
Accepted
time: 5ms
memory: 3940kb
input:
34880 10900 )()(((())()(((((()))(()()(())()()))))()()()()(()(()(()))))))(((((())((()((()))()())))()(((())(((())()(()())()))))((()()())(((()))(())())))(())()()()()))()(()()()(()))()))()(())())))()()(((()))(()()(()(()(())()()()(()())(()()()))))))(()()()))())(())()(()()(()))(()))((())((())()(())()())))...
output:
-5273956
result:
ok single line: '-5273956'
Test #90:
score: 0
Accepted
time: 11ms
memory: 4420kb
input:
82766 22675 )(()((())))))()((()()()((((())()((()())(())(())(()(((()(())))()(((()(()()))()(()()((()())(())())())((((())()(())())())()(()((((())))))))))(((())()()())()))()())(())()()))())))(()(()(((()()())()()((())(((((()((()()))((()))(())(((((((()())()(())))()(((())))()()(((()())())())((()()()(())(((...
output:
-14611752
result:
ok single line: '-14611752'
Test #91:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
20651 2903 )(((()(()((()())()(())())(())()(()(())()(()()((((()()()())((())())))(((()))(()((((())))((((((())()(((((((()(((()((())(())()())((()(())())(())())())()(())()))()()((())())(((()()))(()(()(()()((()())))(()((()))(())(()())()()))())()()()()()(()))((((((()))))()((())()))()(())()(()()())))()())((...
output:
-5211676
result:
ok single line: '-5211676'
Test #92:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
6432 3498 ()())()(())(())(((()())()(()())))()()))((((())))((())()(()(())()()((((()))()))(((())()((((()(()))()())((()()(()()(()((())()()((((()(((((()())))())()(((()()()((()))()())())()()((()()))))))))(())(((())(((())()()))))()))(()))(((()(()())())))))((()())()()()(()())))))())()()()()())()()))(((((((...
output:
?
result:
ok single line: '?'
Test #93:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
13157 5457 )((((()))())())()))()()))())()()(()))(()(())))))())))(()()()(()(()(()())((())(()((()))(())())(()()((()(((((()((((((()))((()(((((())(()))(((()()()()((()(()(()))()))()()(((())))(()))(()()()(((((()())))())()))())(()(((()())(())()()(())((((())()(((())(()))()(())()))(()((()))(()())))()())))))(...
output:
-3266120
result:
ok single line: '-3266120'
Test #94:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
40704 33801 (()(()))())(()))((()()())(())(())()))))(())((()))(()))()())()(()()()()))()()()(((()))))())(((((())(())((()))((()((((()((()((())((()()))((()())())))))))()((((((()))((())))()())((())))(())))))))(()))())()((())()(()(()))))((()()()()))))())(())(((()()()((((())()))(())(()(((()()()((())(()()))...
output:
?
result:
ok single line: '?'
Test #95:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
92382 60582 ((())((((()))))(((()))))(())((()))())))))()(()))))()(())())((())())(((())))))(((()((()()()()((()())())))(((()((())))))()(()((()())((()(()(((()((((((((((())()))))))(()()()))))))()((((((()()((()())(()(()(()((()))())))((()))(((())(((((()))())(()(()((((()))()()((((())()))))(()((((())))((()((...
output:
?
result:
ok single line: '?'
Test #96:
score: 0
Accepted
time: 4ms
memory: 4016kb
input:
71296 58126 )((())())((((())))()((()())((()))((((()()(()()()))()))((())()((()())()))()))())(()())))(()((((())((())()((()(()())(()()()(()()()))()())((()())(()))((()()(())())((())()()))((()((()()()(((()()()()(((((())())(())))()))(()((((()()(()()(((())((()))))(((()((()(()(()())()))(((((())()))())(())))...
output:
?
result:
ok single line: '?'
Test #97:
score: 0
Accepted
time: 4ms
memory: 4084kb
input:
72588 53383 ))))(((()())(((()()()())))))))(((())()())()())()))()()((()()(())(()((()))(()((())))(()()(()(()(())((((())))))))())((()(())((()()())))())())(()()())((()((()())(())(()((()())())()))(()))()((())))()(((())(()((()(()())(()(((()(()(((())(((()))()))(((())(()((((()))((((()(()((((((())((())((()))...
output:
?
result:
ok single line: '?'
Test #98:
score: 0
Accepted
time: 3ms
memory: 4136kb
input:
42622 2948 ()(()(((()(((()(()))())())))((()((()(((()((()((((())))))(()(()()())(((())((()()(()))((((()()))()))(()))(())())((()))(()((())()(()((((()(()))))))))((((())((()()(((())()((((())))()))))()((()(()((()()()((((((())()()))()(()))((((((()))(()))()(()()()))))()()))))((()(())()))(())))))))())((()(((...
output:
-10640230
result:
ok single line: '-10640230'
Test #99:
score: 0
Accepted
time: 2ms
memory: 3916kb
input:
42479 25598 ))((()))())()))(()))(()))))())))())(()(())))((()())()((((())(())()()()()(()))(((()(()))))()())())())))()(())))()))(()(()((())((((()()((()))(()))(()((()())((())()()()(((()(()(())((()()))(((((())())()))(((())(())()())((((())())))()))()())())))())))(())())))())((())(()())())(()))))((()(())(...
output:
-10671266
result:
ok single line: '-10671266'
Test #100:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
2538 2357 )()(((((()(((())(((())())))))())))())()())(())))((()()))))()((()((())(((()()((()))(())((())(())))))))())((()())(()))))(((()))(())(())())()(()())))))())()((())(())((((((()((()((()()))(((())(()((((((())))(((())(()()()))((())()(())(()())()((()(()((())()()(((())()()(()))()()(((((()))))()()((()...
output:
?
result:
ok single line: '?'
Test #101:
score: 0
Accepted
time: 4ms
memory: 4180kb
input:
77639 52612 ))))(((()(()()())()((()()())()()())(((()()))(())())))()(((())()(((()())())((())()(()((((()))))()())()))))())()())()))))(()))))())())))(())(()(()())))()))()(())((((((((((((()()((()(()))()(())(())()(()((()()))))()))(()((()))(()))))((()((((()((()(()(())))()))()(()(((()(())(((()()))))(((()((...
output:
-19300217
result:
ok single line: '-19300217'
Test #102:
score: 0
Accepted
time: 2ms
memory: 3984kb
input:
44099 1837 (())()(())))()))()(())(()()(()())))))(())(())()(()))((((())()(()()())(())((()(()()()))(((())))()()))))))(())(()(((()((((()(((()())()((()))())))(())())()((()((((()(()()()((())()())))(((()((()(()((()())()()()))()()()(())((()()(((((()()(((())()())))((()()()(((())(())(((((()((())))())(()(()()...
output:
-11028777
result:
ok single line: '-11028777'