Ticket 7103
Problem 1680 -c
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
1
011101001101000110000101111110100111010100001101001111100011011001111011100101100101011011011111110101011111110011011111000100110010111111011011010111111011011110111111101111100010101110011011000101011111011110101001101111110010111100011001111111010111001001101010001111001010001111100011011011101000011001011000110001101010000001100010110000111101
Expected Output
69
Generator Parameters
--n_high 2000 --n_low 1 --t_high 1 --t_low 1