Ticket 16926
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
23 48
-87 -60 73 78 -13 70 45 -41 -71 -20 57 79 -40 9 53 81 -53 86 -82 2 44 46 15 
17 15
1 7
2 18
16 14
2 23
19 16
13 10
7 4
2 6
16 11
2 16
14 21
7 2
9 14
10 12
8 3
2 5
13 16
6 8
22 9
4 15
20 1
2 17
1 23
1 6
2 4
2 23
1 23
2 17
2 21
2 12
2 13
2 14
2 7
2 15
2 5
1 19
2 19
1 2
2 13
2 14
1 21
1 23
1 15
2 14
2 10
1 19
2 20
2 10
1 7
1 22
2 14
2 10
1 3
2 23
1 2
2 17
2 5
1 7
2 17
2 14
2 18
2 18
1 22
2 20
2 14
2 11
2 19
1 3
1 22
Expected Output
15
102
15
-82
356
53
15
0
-82
123
46
73
356
123
46
73
46
Your Output
15
102
15
-82
356
44
15
131
-82
123
46
73
356
123
46
73
46
Difference
Generator Parameters
--m_high 200 --m_low 2 --n_high 200 --n_low 2 --val_high 90 --val_low -90