Ticket 16827
Problem 1797 -d
Submission 201344866
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 3
-1 -1 0 1 
1 2
3 4
3 2
2 3
2 2
1 2
Expected Output
-1

Your Output
0
Difference
Generator Parameters
--m_high 5 --m_low 1 --n_high 4 --n_low 4 --val_high 1 --val_low -1