Ticket 4299
Problem 1661 -c
Submission 153240430
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
7
5
3 3 4 1 4 
9
7 1 8 5 8 4 9 3 1 
2
1 10 
1
3 
2
6 4 
10
3 5 9 10 3 5 4 3 6 9 
7
1 9 9 5 4 7 1 
Expected Output
5
24
6
0
2
29
18
Your Output
4
24
6
0
2
29
18
Difference
Generator Parameters
--h_high 10 --h_low 1 --n_high 10 --n_low 1 --t_high 10 --t_low 1