Ticket 4567
Problem 1661 -e
Submission 153231858
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
4
1111
1101
1111
9
1 3
1 3
2 2
2 4
2 3
4 4
4 4
1 4
1 2
Expected Output
1
1
1
1
1
1
1
1
1
Your Output
2
2
1
1
2
1
1
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1