Ticket 4423
Problem 1661 -c
Submission 153205339
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
8
5
2 9 9 9 1 
8
2 1 3 4 3 6 2 8 
7
9 7 1 1 4 2 8 
6
9 9 7 5 6 5 
8
6 4 1 6 2 7 1 2 
6
1 7 7 1 5 5 
3
2 4 6 
4
9 2 3 2 
Expected Output
10
24
21
9
18
11
4
14
Your Output
10
26
21
9
18
11
4
15
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1