Ticket 6666
Problem 1660 -e
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
4

2
10
10

4
1001
1110
0100
0110

2
11
01

3
011
110
010
Expected Output
2
4
1
2
Generator Parameters
--n_high 7 --n_low 1 --t_high 5 --t_low 1