Ticket 1055
Problem 1648 -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
6 5
-3 0 -2 -2 3 -2 
-3 1 -2 3 3 0 
3 -2 3 -1 1 -1 
4 6 3
3 3 9
4 4 5
3 6 2
2 5 2
Expected Output
0
Generator Parameters
--k_cap 1000000000 --k_high 9 --k_low 1 --n_cap 500000 --n_high 7 --n_low 1 --q_cap 500000 --q_high 7 --q_low 1 --val_cap 1000000000 --val_floor -1000000000 --val_high 3 --val_low -3