Ticket 12335
Problem 1661 -c
Submission 160769308
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
9 4 1 2 2 3 2 1 3 
3
2 9 9 
9
4 5 3 3 1 4 7 3 8 
5
5 4 3 2 4 
4
4 4 3 6 
7
1 6 5 9 8 6 2 
Expected Output
36
5
23
5
5
18
Your Output
1
5
23
5
5
18
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1