Ticket 2121
Problem 1649 -f
Submission 149687698
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
4 5
-6 -7 -2 -1 
4 10 8 2 
-2 1 1 8 
4 4 3
4 4 2
3 4 1
1 1 5
2 2 5
Expected Output
15
Your Output
9
Difference
Generator Parameters
--k_cap 1000000000 --k_high 5 --k_low 1 --n_cap 500000 --n_high 5 --n_low 1 --q_cap 500000 --q_high 5 --q_low 1 --val_cap 1000000000 --val_floor -1000000000 --val_high 10 --val_low -10