Ticket 4325
Problem 1661 -e
Submission 153243506
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
13
1111111010011
0001001010010
0011011101110
9
3 11
1 6
3 6
2 2
3 4
1 2
3 12
4 4
6 9
Expected Output
3
2
2
1
1
1
3
1
2
Your Output
3
2
1
1
1
1
3
1
2
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1