Ticket 10621
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
6
))((())()()(
7
)(())))(((())(
7
(())(((())))()
7
()))(((()))()(
6
)()))((()(()
Expected Output
2
1 5
6 12
2
1 3
4 14
0
2
1 8
9 14
1
1 11
Your Output
2 1 12 2 10
3 1 14 2 13 4 11
0 
2 2 14 3 11
1 1 11
Difference
Generator Parameters
--n_high 8 --n_low 6 --t_high 5 --t_low 5