Ticket 6797
Problem 1678 -b2
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
9
20
11000101111010100110
20
10111101110111010001
20
11111110111111101011
20
01111011111010011011
18
011011010101111101
16
0000000000000000
18
110101101111111111
18
010000001101011110
18
000000000000000000
Expected Output
7 3
5 2
3 1
6 1
6 1
0 1
3 1
4 2
0 1
Generator Parameters
--half_n_high 10 --half_n_low 8 --t_high 10 --t_low 8