Ticket 4326
Problem 1661 -e
Submission 153243863
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
8
10111011
11010101
01111111
8
2 5
1 1
3 7
3 7
5 7
1 2
1 8
4 4
Expected Output
1
1
2
2
3
1
1
1
Your Output
1
1
2
2
2
1
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1