Ticket 8540
Problem 1671 -c
Submission 158777526
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
10
12 99
54 9 63 29 78 23 76 64 81 78 60 69 
9 29
38 47 46 59 5 33 61 64 80 
20 50
56 9 71 74 77 14 89 46 9 51 62 62 25 82 47 34 12 65 81 56 
10 92
98 84 82 40 32 3 9 21 7 37 
20 53
76 39 5 11 20 33 34 21 85 53 29 11 26 46 19 81 18 62 21 57 
10 77
78 6 19 88 47 62 80 38 53 81 
14 18
55 68 73 48 45 47 30 91 50 71 79 46 15 93 
9 27
22 53 35 33 92 4 48 28 99 
6 37
63 32 69 85 69 86 
15 79
73 97 80 87 61 8 58 5 92 8 36 93 92 35 52 
Expected Output
138
25
68
176
80
104
4
25
6
135
Your Output
147
33
84
181
96
111
17
32
11
146
Difference
Generator Parameters
--n_high 20 --n_low 1 --t_high 10 --t_low 10 --val_high 100 --val_low 1 --x_high 100 --x_low 1