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