Ticket 16928
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
17 12
653 150 512 484 883 -187 69 -456 -761 796 -850 312 -582 895 -837 -424 -403 
6 4
4 14
9 10
17 9
1 2
16 15
12 5
3 9
8 10
2 11
9 4
8 13
15 14
11 4
4 7
3 12
2 15
1 13
1 6
1 2
1 17
2 14
1 17
2 16
2 7
1 8
2 11
1 14
Expected Output
-582
-187
-399
-403
-403
-1038
-366
Your Output
-582
-187
-399
-403
-403
-1038
471
Difference
Generator Parameters
--m_high 20 --m_low 2 --n_high 20 --n_low 2 --val_high 900 --val_low -900