Ticket 16177
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
4 2
4 1 3 2 
1 3
3 4
Expected Output
6
Your Output
9
Difference
Generator Parameters
--m_high 3 --m_low 1 --n_high 4 --n_low 2