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