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