Ticket 6563
Problem 1667 -b
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
3
-7 4 0 
13
2 -1 -1 5 -8 -1 -9 0 -2 5 -1 -3 -2 
6
0 0 -4 0 8 2 
13
-1 0 -6 5 -7 -9 5 0 0 8 8 -1 7 
14
4 0 0 9 -7 0 -7 -7 0 6 -1 -9 0 7 
9
3 -8 0 6 0 -1 0 9 0 
4
-3 0 0 -2 
5
0 -1 0 0 -5 
3
5 0 -6 
Expected Output
1
3
6
13
10
9
-2
-2
1
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