Ticket 5515
Problem 1668 -d
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
4
11
0 0 0 1 0 -1 0 0 0 0 1 
10
0 0 0 0 0 -1 0 -1 1 1 
6
0 0 0 0 0 0 
9
1 0 0 0 0 0 1 1 1 
Expected Output
11
3
0
9
Generator Parameters
--absolute_value_of_elements_high 1 --absolute_value_of_elements_low 0 --n_high 15 --n_low 1 --t_high 10 --t_low 1