Ticket 1335
Problem 1649 -e
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 15
81 170 114 59 118 86 68 
30 187 34 164 3 88 55 44 126 58 148 50 31 25 17 
Expected Output
0
Generator Parameters
--m_cap 200000 --m_high 20 --m_low 1 --n_cap 200000 --n_high 20 --n_low 1 --val_cap 200000 --val_high 200 --val_low 1