Ticket 8542
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 9
4 9 3 9 8 3 6 4 1 8 10 9 
9 9
8 7 6 9 5 3 1 4 10 
20 10
6 9 1 4 7 4 9 6 9 1 2 2 5 2 7 4 2 5 1 6 
10 2
8 4 2 10 2 3 9 1 7 7 
20 3
6 9 5 1 10 3 4 1 5 3 9 1 6 6 9 1 8 2 1 7 
10 7
8 6 9 8 7 2 10 8 3 1 
14 8
5 8 3 8 5 7 10 1 10 1 9 6 5 3 
9 7
2 3 5 3 2 4 8 8 9 
6 7
3 2 9 5 9 6 
15 9
3 7 10 7 1 8 8 5 2 8 6 3 2 5 2 
Expected Output
13
13
22
2
5
11
15
9
8
16
Your Output
22
19
36
11
22
18
25
15
12
27
Difference
Generator Parameters
--n_high 20 --n_low 1 --t_high 10 --t_low 10 --val_high 10 --val_low 1 --x_high 10 --x_low 1