Ticket 2419
Problem 1657 -c
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
10
16
)())(())(())()))
16
())((()()))())((
11
)))))(())()
17
)()))())(((()))((
12
))(()))(()))
14
)()()((((())((
17
()()((((())((((()
11
((()())()))
18
)()(((((((())((())
12
))(())))))))
Expected Output
5 0
5 3
4 0
6 0
5 0
5 3
6 0
5 0
8 1
6 0
Generator Parameters
--n_cap 500000 --n_high 20 --n_low 10 --t_cap 10000 --t_high 10 --t_low 10