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