Ticket 10620
Problem 1685 -c
Submission 159533589
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
5
7
()(())))(()()(
10
)(())))((())()((())(
10
)(()()()(())))((())(
9
(()))()(()))(((())
6
()()())(()()
Expected Output
1
5 14
2
1 3
4 20
2
1 10
11 20
1
3 16
1
2 9
Your Output
1 5 14
3 1 20 2 19 4 17
2 1 20 2 19
1 3 16
1 2 11
Difference
Generator Parameters
--n_high 10 --n_low 6 --t_high 5 --t_low 5