Ticket 1135
Problem 1648 -d
Submission 148673412
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
7 7
-3 -2 -1 0 -2 -1 -2 
1 -1 -1 -3 -2 2 -1 
3 -1 0 -2 -1 3 -2 
5 6 4
6 7 2
2 4 2
6 7 7
5 6 3
3 6 5
2 4 7
Expected Output
-8
Your Output
-5
Difference
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