Ticket 5391
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
10
3
5 -8 -2 
14
0 -8 4 1 0 0 0 0 -6 0 -6 4 2 -8 
1
-1 
11
4 0 -6 0 1 -1 9 1 3 0 0 
10
-6 2 0 7 -8 -5 0 1 0 0 
1
-7 
10
0 0 0 0 0 0 5 0 0 0 
1
-1 
11
0 -5 -2 0 0 8 5 -5 -1 0 0 
3
-2 -4 0 
Expected Output
-1
4
-1
11
6
-1
10
-1
8
-2
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