Ticket 1222
Problem 1649 -f
Submission 148701842
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 6
-3 1 2 1 
2 0 0 -3 
-3 2 3 3 
1 4 5
1 4 4
3 4 10
1 1 10
1 1 9
2 3 8
Expected Output
3
Your Output
5
Difference
Generator Parameters
--k_cap 1000000000 --k_high 10 --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