Ticket 3479
Problem 1660 -e
Submission 152703649
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
3

5
01000
10110
11000
10100
00111

9
100101010
011010110
011111111
000001010
001010000
011001100
101101011
100110101
001010010

5
00100
01111
01001
00010
00010
Expected Output
8
34
8
Your Output
8
38
8
Difference
Generator Parameters
--n_cap 2000 --n_high 15 --n_low 3 --t_cap 10000 --t_high 5 --t_low 1