Ticket 5631
Problem 1671 -d
Submission 154593437
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 14
56 85 54 14 78 20 26 12 
5 13
86 49 78 32 26 
3 12
54 72 72 
6 11
65 95 95 81 54 86 
9 11
69 41 84 41 6 7 36 66 62 
9 2
26 94 55 55 49 8 91 87 89 
7 2
91 37 94 51 63 49 96 
7 7
66 87 43 9 40 94 61 
8 3
44 78 22 16 8 90 79 1 
2 9
68 43 
4 1
55 30 34 8 
3 14
10 4 9 
9 10
93 48 97 26 59 8 32 54 73 
1 12
80 
4 8
68 88 5 24 
2 3
8 2 
1 5
7 
1 5
31 
6 6
12 44 87 36 9 74 
6 15
26 51 76 2 25 62 
Expected Output
253
143
71
167
223
257
299
233
275
67
62
21
328
79
130
7
6
30
229
186
Your Output
253
143
71
167
223
257
299
233
275
67
62
22
328
79
130
7
6
30
229
186
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