Ticket 16921
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
22 30
-55 -53 23 -87 -60 73 78 -13 70 45 -41 -71 -20 57 79 -40 9 53 81 -53 86 -82 
13 3
11 17
19 11
4 11
3 18
15 12
2 8
9 7
3 20
3 2
11 5
3 21
5 7
3 11
10 14
16 19
8 6
16 22
2 15
1 19
20 14
2 14
2 8
2 9
1 15
2 12
2 10
1 12
2 21
2 11
2 17
2 6
2 5
2 5
2 15
2 4
1 5
2 22
1 7
2 11
2 3
1 20
1 14
1 1
2 15
2 15
1 7
2 8
2 11
1 12
1 15
Expected Output
8
-71
-60
88
49
102
79
175
8
79
Your Output
8
-71
88
148
49
102
79
148
-71
8
Difference
Generator Parameters
--m_high 50 --m_low 10 --n_high 50 --n_low 10 --val_high 90 --val_low -90