Ticket 16176
Problem 652 -c
Submission 172528077
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
7 5
4 6 3 1 5 2 7 
2 4
2 3
1 2
4 6
3 4
Expected Output
16
Your Output
26
Difference
Generator Parameters
--m_high 9 --m_low 1 --n_high 9 --n_low 2