Ticket 4813
Problem 1661 -c
Submission 153476119
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
9
6
5 5 5 9 2 4 
4
4 4 5 1 
6
3 3 5 7 7 6 
4
8 7 9 8 
6
2 4 5 6 3 7 
7
7 4 3 7 6 2 8 
3
8 8 7 
5
3 5 4 9 2 
4
6 8 3 5 
Expected Output
16
4
8
3
10
13
1
15
7
Your Output
16
5
8
3
10
13
1
15
7
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1