Ticket 7102
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
000000010000000000000000000000000000000001000000000000100000001011010001001001100001010000100000000001010000000100000000101100000001100000000001000010011110111000000100000000110010100000000011000000010000000000100000000001000000010001000000101000000000010010010000001100000010110000000101000101010000000000100000100001000000000000010000000100000010010000100101011000100000100000000000001000000000000000100000000001100010001000100000011000000000000001100000000000000001000010000000000000100000111010000000000101000000001010001000000001001010000100000001001010000110001000010001000001000101000100101110000010001010001000000000100001000000000000100000000000100100000000110000000100001100000000000000000010000001000
Expected Output
96
Generator Parameters
--n_high 1000 --n_low 1 --t_high 2 --t_low 1