Ticket 11749
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
15
111110011001010
110011011001000
110101111010000
3
8 10
5 11
5 11
Expected Output
1
2
2
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1