Ticket 14804
Problem 1696 -e
Submission 161799245
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
18
197 189 182 175 168 164 160 141 110 107 101 83 74 71 69 41 40 22 10 
Expected Output
474794025
Your Output
8474794081
Difference
Generator Parameters
--n_high 20 --n_low 1 --val_high 200 --val_low 5