Ticket 3643
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
5 7
3 -1 -3 2 -3 
2 -2 3 -2 3 
-1 -3 -3 1 1 
2 5 6
2 4 9
1 4 8
3 4 1
3 4 6
1 4 9
5 5 9
Expected Output
1
Generator Parameters
--k_high 9 --k_low 1 --n_high 7 --n_low 1 --q_high 7 --q_low 1 --val_high 3 --val_low -3