Ticket 10371
Problem 1687 -d
Submission 159441233
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
54 309 564 1029 1263 1576 1623 1692 1699 1878 
Expected Output
25357
Your Output
3326922
Difference
Generator Parameters
--n_high 10 --n_low 10 --val_high 2000 --val_low 1