Ticket 4661
Problem 1661 -e
Submission 153377713
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
18
111110111001001000
101100110010000000
110111010111110111
4
1 15
6 15
2 8
7 18
Expected Output
5
5
3
5
Your Output
5
5
2
5
Difference
Generator Parameters
--n_high 20 --n_low 1 --q_high 5 --q_low 1