Ticket 5598
Problem 1671 -d
Submission 154584464
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
5 14
22 92 37 94 77 
5 14
52 53 14 88 49 
7 7
69 22 14 86 59 68 41 
9 15
51 17 89 47 6 34 62 41 50 
3 10
3 26 1 
7 11
91 64 44 1 31 1 38 
2 4
58 23 
1 14
41 
3 9
27 13 62 
9 13
54 16 75 54 25 41 99 83 8 
8 10
24 84 98 51 25 41 60 16 
7 2
58 31 85 33 17 14 87 
4 15
55 23 4 83 
9 15
41 45 86 72 33 44 72 71 7 
5 5
2 41 83 39 91 
6 7
77 99 29 74 84 53 
1 2
10 
7 6
1 7 50 40 20 27 49 
3 14
9 10 3 
8 11
34 99 24 79 97 32 10 58 
Expected Output
220
179
216
285
48
187
57
40
87
319
241
251
136
208
178
230
9
108
15
366
Your Output
220
179
216
285
48
187
57
40
87
319
241
251
136
208
178
230
9
108
20
366
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