Ticket 4799
Problem 1661 -e
Submission 153454572
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
1001
1111
1100
11
2 4
3 4
1 3
3 4
3 4
1 4
1 3
3 4
1 1
2 4
2 2
Expected Output
1
1
1
1
1
1
1
1
1
1
1
Your Output
2
2
1
2
2
2
1
2
1
2
1
Difference
Generator Parameters
--n_high 6 --n_low 1 --q_high 15 --q_low 1