Ticket 4731
Problem 1661 -e
Submission 153414043
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
111111010010010
110100000010011
000111111110111
8
4 14
7 12
6 9
1 10
12 13
8 14
1 1
9 11
Expected Output
3
2
3
2
1
3
1
1
Your Output
4
2
3
2
1
3
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1