Ticket 2432
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
20
())((()()))())(())((
20
(()())))())(()(()))(
20
())()(((()))(())))()
20
((((())(())(())((())
20
)(((()()(((())((((((
20
()))))()(((())(()(()
20
(()()))))())((()()()
20
))))))())(())((()()(
20
)((())(((())())))(((
20
)()))(()((((())()))(
Expected Output
6 3
7 2
8 0
6 1
8 0
9 0
8 0
7 1
4 4
6 1
Generator Parameters
--n_cap 500000 --n_high 20 --n_low 20 --t_cap 10000 --t_high 10 --t_low 10