Ticket 15119
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
7
28
-4 -2 0 0 0 5 -8 0 0 0 7 0 -8 5 6 -9 0 -9 -2 0 -2 8 0 0 1 0 0 0 
15
1 4 1 -4 -1 0 0 0 0 3 0 9 -2 2 5 
14
6 0 0 0 -6 0 0 0 -2 0 -8 0 0 0 
22
0 -4 8 5 1 0 0 0 2 -7 0 -1 9 3 -7 0 -2 -7 0 0 -7 -1 
29
6 -7 0 0 0 -3 -9 5 -5 -9 0 3 -8 3 -1 0 0 0 0 0 0 2 0 0 -7 -3 -3 5 -6 
29
-9 0 0 0 1 0 -7 6 0 1 0 -1 0 0 0 -2 -6 0 4 6 0 9 9 0 0 -1 0 9 0 
14
0 0 -5 0 0 -6 0 5 0 0 -5 -2 0 0 
Expected Output
23
15
1
15
8
29
0
Generator Parameters
--absolute_value_of_elements_high 9 --absolute_value_of_elements_low 0 --n_high 30 --n_low 10 --t_high 10 --t_low 1