Ticket 5398
Problem 1661 -e
Submission 154165612
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
19
1111111111001010000
0001010101001110001
0101111111010100110
5
13 19
2 13
6 12
3 14
6 12
Expected Output
3
4
2
3
2
Your Output
3
4
1
3
1
Difference
Generator Parameters
--n_high 100 --n_low 1 --q_high 10 --q_low 1