Ticket 5630
Problem 1671 -d
Submission 154593241
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
20
6 1
46 97 89 26 84 20 
8 7
38 48 36 51 6 23 43 45 
1 6
18 
7 8
67 47 79 29 33 7 66 
7 9
56 44 5 23 75 66 68 
4 8
90 62 52 6 
5 5
68 46 79 37 33 
4 8
70 8 65 67 
9 10
25 85 28 18 51 78 97 63 86 
7 13
91 70 99 7 96 36 96 
6 8
69 42 13 45 30 89 
6 8
97 47 86 28 3 24 
1 1
43 
9 13
39 17 42 38 51 40 77 86 12 
3 7
38 18 6 
4 14
16 94 53 64 
1 14
88 
9 4
89 22 21 37 8 90 83 23 28 
5 2
15 88 62 23 83 
2 13
10 35 
Expected Output
263
131
17
203
140
89
133
135
287
363
186
197
42
206
37
145
87
281
212
34
Your Output
263
131
17
203
140
94
133
135
287
363
186
197
42
217
42
145
87
281
212
34
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 20 --t_low 20 --val_high 99 --val_low 1 --x_high 15 --x_low 1