Ticket 5514
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
8
9
4 0 -5 -1 8 0 -2 -9 3 
12
4 0 0 5 4 -7 1 0 0 9 -9 -1 
2
0 -5 
12
-5 -1 3 9 -8 0 6 6 1 0 0 -3 
10
0 2 0 3 0 8 -4 8 0 3 
15
0 -2 8 0 -1 0 0 -8 1 -4 0 -6 6 -7 7 
14
1 0 0 0 0 0 0 8 0 5 5 0 0 7 
3
2 0 0 
Expected Output
7
12
-1
12
10
8
14
3
Generator Parameters
--absolute_value_of_elements_high 9 --absolute_value_of_elements_low 0 --n_high 15 --n_low 1 --t_high 10 --t_low 1