Ticket 4256
Problem 1661 -c
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
1
19
8 15 9 6 8 6 20 18 17 9 11 13 11 12 20 18 6 15 9 
Expected Output
100
Generator Parameters
--h_high 20 --h_low 1 --n_high 20 --n_low 1 --t_high 1 --t_low 1