Ticket 3606
Problem 1660 -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
20
2 1 -1 2 0 2 -2 -1 2 2 0 0 2 1 -1 -1 -1 -2 2 -1 
20
0 2 1 2 0 2 0 -2 1 2 1 -2 1 0 -1 2 -2 2 1 0 
20
-2 0 -2 -1 1 -1 1 -2 2 -2 1 2 -1 1 0 2 1 2 -1 -2 
20
-2 1 -1 -1 -1 0 0 -1 1 -1 -2 0 0 2 -1 2 -1 1 -2 0 
20
-1 1 -2 1 1 -2 -2 2 1 -2 -2 1 0 2 0 0 -2 -2 1 0 
20
0 1 1 0 -2 -2 -1 0 2 1 0 0 0 2 2 2 2 -2 -1 1 
20
0 2 1 2 0 -1 2 -1 -2 2 0 -2 2 1 0 1 -1 -1 1 -2 
20
-1 -1 -2 1 -2 0 -2 -1 1 1 0 0 0 -1 2 2 1 2 2 0 
20
0 2 0 -2 -2 1 -2 -2 1 -1 1 -2 0 1 -1 1 2 1 0 -1 
20
-1 2 -2 1 0 1 2 0 -2 2 -1 2 -1 1 1 -1 0 -2 0 -2 
Expected Output
5 10
7 7
2 6
15 1
0 8
13 0
6 10
14 1
3 8
8 4
Generator Parameters
--exclude_zero 0 --n_cap 200000 --n_high 20 --n_low 20 --t_cap 10000 --t_high 10 --t_low 10 --val_cap 2 --val_floor -2 --val_high 2 --val_low -2