Ticket 16932
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
5 5
7 -9 -3 4 -8 
2 3
5 3
4 5
1 4
1 4
2 5
2 2
2 4
1 4
Expected Output
-16
4
Your Output
-16
-8
Difference
Generator Parameters
--m_high 5 --m_low 1 --n_high 5 --n_low 2 --val_high 9 --val_low -9