Ticket 11853
Problem 1680 -c
Submission 160071170
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
2
00000100011010000010001000000000000000000000000000000000000000000000000000000000000001000000000000001000001000000000000000000000000000010000000000000100000010100000000000000010100000000000001000000000000000000000100000000000000000100000000010001000001000000001000000000000000000000000100000000000000000000000000000000100000000000000000000000000000000001001000000001000001000000000000000001000001000000000100000001000000000000000000100000000000100000000001000000000000000000000100000000001001000000000000000000100000000000000000000000000000000100000000000000000000000100000000000000000000000000000000000000000000010000000000000000000000000100000000000000000000000001100000000000000100000000000
111111111111111111110011111111111000101111111111111111110111111101111111111111011111111111111111111111101111111011111101110110111111111111011111110111111011111101111111111111111111111111111111111111111111110111111111111111111111111111111101110111111111111111111110110110011111011111111111111111111111111110111111111011111111111111111111111111111111110010111111111101101010111110111111101111111110111111111110011111111111100110111111111110111010111101111111111111111110011111011110111111111111110111111101111111111111111111011111111111111111011111101011110111111101111111111111111110111111111110111111111101111111111111111111111111111110111111101111111111111111111011111111111110111111111111111111111111111111111101111111110111111111101111111111111111111111101111111111111101110111110111
Expected Output
40
63
Your Output
41
63
Difference
Generator Parameters
--n_high 1000 --n_low 1 --t_high 2 --t_low 1