Ticket 5592
Problem 1671 -d
Submission 154583872
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 8
10 18 18 57 90 70 54 73 
4 10
84 80 34 84 
8 7
86 16 41 34 6 96 40 41 
7 1
58 87 33 38 24 85 7 
9 5
62 4 38 93 97 31 24 19 99 
2 3
81 38 
5 3
66 52 81 15 22 
2 5
2 1 
7 1
43 68 74 29 16 68 32 
5 10
11 31 53 93 85 
5 10
11 28 74 35 87 
8 12
12 92 25 91 2 34 8 38 
6 5
33 34 61 31 11 14 
2 10
91 76 
9 12
77 35 36 10 77 41 75 50 38 
3 1
81 20 75 
4 8
71 3 23 11 
8 5
54 96 20 87 38 49 23 62 
4 13
7 9 11 74 
6 11
79 25 43 27 26 80 
Expected Output
144
166
287
247
315
80
137
4
207
100
164
392
94
90
261
154
104
348
73
191
Your Output
144
166
287
247
315
80
137
5
207
100
164
392
94
90
261
154
104
348
73
191
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