Ticket 251
Problem 1630 -c
Submission 145625892
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
5
5 1 3 5 2 
Expected Output
2
Your Output
-1061109562
Difference
Generator Parameters
--n_cap 200000 --n_high 7 --n_low 3