Ticket 4512
Problem 1661 -e
Submission 153240823
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
9
110111001
000111001
111101111
8
2 4
3 5
2 9
2 7
2 9
3 6
4 4
3 7
Expected Output
2
1
2
2
2
1
1
1
Your Output
3
1
2
3
2
1
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1