Ticket 409
Problem 1638 -f
Submission 146385188
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
2 4 2 8 5 5 8 
Expected Output
28
Your Output
26
Difference
2826
Generator Parameters
--h_cap 1000000000000 --h_high 9 --h_low 1 --n_cap 10000 --n_high 7 --n_low 1