Ticket 5727
Problem 1661 -e
Submission 154753343
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
6
111100
110100
101100
9
3 4
3 5
1 2
1 6
1 2
1 4
2 4
4 5
4 5
Expected Output
1
1
1
1
1
1
1
1
1
Your Output
1
1
1
2
1
2
1
1
1
Difference
Generator Parameters
--n_high 15 --n_low 1 --q_high 9 --q_low 1