Ticket 5642
Problem 1671 -d
Submission 154602210
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
7 5
75 3 27 83 23 28 79 
6 2
95 51 27 66 56 68 
7 8
86 19 35 43 65 43 36 
9 6
96 20 14 2 28 43 57 97 46 
1 13
50 
5 11
61 67 1 22 64 
1 7
65 
9 8
23 40 3 74 25 85 11 90 82 
4 11
87 28 82 92 
9 10
74 6 6 3 78 31 60 94 48 
3 11
98 25 4 
1 9
91 
1 13
34 
6 6
24 93 1 27 69 4 
4 14
9 7 12 1 
3 5
93 48 83 
9 4
19 56 32 20 40 42 5 30 43 
2 10
61 23 
4 6
11 73 80 98 
6 6
7 2 11 7 66 6 
Expected Output
272
181
177
242
49
135
64
399
177
306
97
90
33
294
22
162
178
60
97
139
Your Output
272
181
177
242
49
135
64
399
177
306
97
90
33
294
23
162
178
60
97
139
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