Ticket 5637
Problem 1671 -d
Submission 154599310
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
36 72 27 10 26 
2 1
12 22 
3 15
2 53 88 
9 7
46 73 67 65 17 69 45 9 70 
5 9
14 17 42 13 91 
6 14
25 19 11 87 55 52 
7 7
95 5 12 65 4 15 76 
9 5
30 2 55 74 32 68 54 8 83 
1 5
58 
6 13
55 74 25 83 13 38 
3 6
47 38 95 
3 1
35 53 41 
3 1
54 82 14 
6 10
86 82 42 6 95 50 
5 8
44 83 95 30 50 
7 6
4 4 93 12 35 39 47 
7 5
45 2 72 25 65 71 29 
2 13
94 46 
9 4
59 51 5 96 11 17 58 6 98 
2 10
94 38 
Expected Output
132
21
87
272
148
145
289
315
57
245
112
64
109
224
179
208
250
93
429
93
Your Output
132
21
87
301
148
145
289
315
57
245
112
64
109
224
179
208
250
93
479
93
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