Ticket 16929
Problem 1797 -d
Submission 1
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 7
607 -529 -328 -896 
4 3
2 4
1 4
2 4
2 4
1 1
2 4
1 1
1 3
1 3
Expected Output
-1146
-1146
-1224
-1224
Your Output
-1146
-1146
529
529
Difference
Generator Parameters
--m_high 10 --m_low 2 --n_high 10 --n_low 2 --val_high 900 --val_low -900