Ticket 5647
Problem 1671 -d
Submission 154604959
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 9
93 56 65 56 62 21 
9 13
78 59 47 4 5 28 54 30 5 
3 8
40 98 99 
5 14
25 92 90 77 12 
3 14
7 13 8 
9 9
79 9 77 84 2 31 34 8 45 
3 11
99 58 49 
2 4
89 77 
6 9
70 64 88 68 5 90 
2 5
64 77 
3 11
34 48 92 
4 14
2 83 92 69 
2 3
33 63 
7 9
10 42 38 8 91 6 75 
8 2
12 4 72 75 42 95 41 48 
7 10
74 48 48 43 9 60 77 
1 8
79 
8 13
30 87 46 63 36 34 92 49 
8 9
98 77 66 72 8 43 27 99 
7 1
72 65 59 19 3 18 65 
Expected Output
122
177
98
158
19
324
98
88
206
76
91
114
62
312
232
149
78
274
239
135
Your Output
122
177
98
158
20
324
98
88
206
76
91
114
62
312
232
149
78
274
239
135
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