Ticket 5093
Problem 1661 -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
10
0010000110
0011110000
0011110101
1
6 7
Expected Output
1
Generator Parameters
--n_high 30 --n_low 1 --q_high 9 --q_low 1