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