Ticket 16828
Problem 1797 -d
Submission 201395338
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
5 2
-1 -1 -1 -1 0 
1 4
2 5
4 5
4 3
2 4
1 5
Expected Output
-3
Your Output
-1
Difference
Generator Parameters
--m_high 2 --m_low 1 --n_high 5 --n_low 5 --val_high 1 --val_low -1