Ticket 2942
Problem 1630 -c
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
30
8 12 6 7 3 15 8 2 13 10 12 13 3 10 9 11 12 14 3 1 14 9 5 5 15 3 11 11 15 11 
Expected Output
26
Generator Parameters
--n_cap 200000 --n_high 30 --n_low 5