Ticket 6667
Problem 1660 -e
Submission 156029823
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

6
010001
011011
000101
000011
111001
010100

12
101011001111
111100000101
000101000001
100110010110
101110011010
100101001000
010001111010
010001000010
011011101010
010100011100
011110011100
101111000101

9
001000000
010011110
000110111
001100001
111011110
000100011
100011111
101110110
100010111
Expected Output
12
63
38
Your Output
12
67
42
Difference
Generator Parameters
--n_high 15 --n_low 5 --t_high 5 --t_low 1