Ticket 5740
Problem 1661 -e
Submission 154801001
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
10
0101000110
0111110111
1011101111
5
5 7
8 10
5 8
2 9
3 10
Expected Output
2
1
2
2
2
Your Output
2
1
2
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1