Ticket 5357
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
9
13
0 0 0 0 -2 8 0 0 2 4 3 -2 9 
5
-1 0 0 6 -1 
2
-5 -2 
15
0 7 5 1 7 0 -8 3 0 0 0 0 4 0 -4 
4
-1 0 -8 0 
13
5 -7 -3 4 0 0 0 -5 0 2 6 -2 4 
7
-2 -8 0 0 -7 0 1 
6
0 -4 0 -6 8 0 
13
6 7 6 0 -4 0 0 -1 -4 8 8 0 8 
Expected Output
13
5
-2
15
-2
13
-1
3
13
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