Ticket 16927
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
37 32
3 1 -2 4 1 2 6 9 -8 4 -5 -5 6 -8 -3 5 -9 -8 -1 6 -6 -3 -5 7 -1 1 -1 -6 -3 3 -8 3 4 -7 8 0 -9 
10 20
18 30
16 12
3 2
22 23
13 4
7 10
36 22
24 30
15 37
32 17
9 34
14 35
5 17
4 30
31 19
6 8
14 28
22 4
26 25
11 5
22 3
29 10
32 12
33 29
27 4
35 8
21 22
26 10
3 31
10 17
16 1
14 29
4 14
37 13
9 21
2 20
1 2
1 9
2 10
1 10
2 25
2 11
2 30
2 9
1 18
2 31
1 10
2 29
1 13
1 20
1 22
2 4
2 9
2 6
2 31
2 21
1 6
1 23
1 15
2 3
1 34
2 14
2 27
1 36
1 29
1 18
1 32
Expected Output
1
-15
16
2
16
-6
6
-39
2
-5
-3
-21
0
17
2
-28
Your Output
1
-15
-24
2
-24
-6
6
-39
2
-5
-3
-15
0
1
2
-28
Difference
Generator Parameters
--m_high 50 --m_low 2 --n_high 50 --n_low 2 --val_high 9 --val_low -9