Ticket 16923
Problem 1797 -d
Submission 1
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
10 3
83 44 -32 65 40 -24 68 79 -30 -66 
4 9
9 1
3 2
8 7
4 5
9 3
2 10
2 7
3 6
2 9
2 3
1 9
Expected Output
75
Your Output
144
Difference
Generator Parameters
--m_high 20 --m_low 2 --n_high 20 --n_low 2 --val_high 90 --val_low -90