Ticket 4335
Problem 1661 -e
Submission 153246375
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
13
1001111111000
1101001001010
0100011110111
9
7 11
7 7
2 10
6 7
1 10
9 9
2 12
4 12
10 12
Expected Output
2
1
2
1
2
2
3
2
2
Your Output
1
0
2
1
2
2
3
2
2
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1