Ticket 10413
Problem 1687 -d
Submission 159459374
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
10
71 286 463 473 701 1264 1264 1355 1524 1560 
Expected Output
1085
Your Output
2217050
Difference
Generator Parameters
--n_high 10 --n_low 10 --val_high 2000 --val_low 1