Ticket 1364
Problem 1648 -d
Submission 148788083
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
8 5
-721993130 483989219 -370881111 -716191774 112908259 488971642 832090978 -564862727 
-675970564 -716013476 594552458 624633977 -583997138 650589700 192748668 -625677361 
-489757299 35310001 183309297 -365298358 -842384784 -945963854 560208049 308864158 
5 5 7
5 8 3
4 4 6
6 6 9
1 3 1
Expected Output
1738714840
Your Output
1170714955
Difference
Generator Parameters
--k_cap 1000000000 --k_high 9 --k_low 1 --n_cap 500000 --n_high 10 --n_low 1 --q_cap 500000 --q_high 7 --q_low 1 --val_cap 1000000000 --val_floor -1000000000 --val_high 1000000000 --val_low -1000000000