Ticket 5641
Problem 1671 -d
Submission 154601593
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
8 1
74 23 89 67 19 25 79 72 
8 1
82 40 77 71 64 22 96 42 
8 15
47 64 90 79 80 53 93 64 
6 9
51 45 97 24 5 91 
3 6
53 34 70 
5 15
11 7 19 62 69 
1 3
69 
1 8
98 
5 10
30 55 38 21 46 
1 4
19 
9 2
11 88 99 92 19 11 33 81 13 
7 15
45 19 22 52 83 68 10 
7 11
98 38 41 71 46 6 48 
7 4
11 37 85 22 45 65 49 
5 14
43 92 3 30 24 
8 7
54 74 60 51 80 1 74 61 
6 4
2 61 87 92 30 40 
2 9
28 72 
1 13
54 
3 2
41 62 56 
Expected Output
290
303
197
244
107
76
68
97
113
18
324
172
210
206
175
237
163
71
53
67
Your Output
290
303
197
244
107
78
68
97
113
18
324
172
210
206
175
237
163
71
53
67
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