Ticket 4251
Problem 1661 -c
Submission 153229189
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
6
9
8 6 7 7 4 5 7 6 5 
2
2 9 
8
2 4 6 7 9 6 7 9 
5
4 5 4 3 4 
5
7 1 2 1 8 
1
5 
Expected Output
12
5
15
5
14
0
Your Output
12
5
15
7
14
0
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1