Ticket 9858
Problem 1661 -e
Submission 159205766
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
010111001111011
000001001100010
100011101111000
3
5 8
11 12
8 13
Expected Output
1
2
1
Your Output
1
3
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1