Ticket 4796
Problem 1661 -e
Submission 153223095
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
001110100011001
111001001101100
001111100000111
8
4 14
2 5
6 15
4 15
6 10
4 10
3 11
4 5
Expected Output
5
1
5
6
3
4
4
2
Your Output
4
1
5
5
3
3
4
2
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1