Ticket 4665
Problem 1661 -e
Submission 153382975
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
28
1100011111100111110011100111
1010111011110100111011101001
0101110101010111010110110111
8
11 14
26 27
2 13
8 14
7 17
17 23
12 18
18 22
Expected Output
2
2
5
3
3
2
2
2
Your Output
2
3
5
3
3
2
2
2
Difference
Generator Parameters
--n_high 30 --n_low 20 --q_high 10 --q_low 5