Ticket 5639
Problem 1671 -d
Submission 154600355
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
4 8
14 37 51 10 
3 15
82 74 39 
3 8
86 25 65 
9 9
7 4 6 10 37 24 86 31 91 
3 2
27 87 83 
8 13
44 28 93 14 2 35 12 41 
9 2
14 26 23 32 64 47 79 85 47 
1 14
18 
3 5
80 24 21 
2 4
59 13 
9 10
26 68 17 1 93 55 15 23 40 
1 9
54 
2 5
45 80 
2 12
9 9 
1 1
98 
2 8
2 32 
7 13
3 45 5 60 29 59 85 
9 8
95 83 11 6 48 81 8 65 43 
3 3
31 40 89 
1 12
39 
Expected Output
87
81
149
232
90
259
162
17
79
58
304
53
79
11
97
31
226
326
88
38
Your Output
87
81
149
232
90
259
162
17
79
58
304
53
79
9
97
31
226
326
88
38
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