Ticket 4828
Problem 1661 -e
Submission 153484624
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
12
000000110101
111111010101
011000111010
8
9 11
5 7
1 9
6 7
4 11
5 12
2 5
1 10
Expected Output
3
3
2
3
4
5
1
3
Your Output
3
3
2
2
4
5
1
3
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1