Ticket 2941
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
25
25 17 6 24 22 11 10 16 3 22 16 2 8 11 6 24 6 23 11 19 7 14 5 13 19 
Expected Output
18
Generator Parameters
--n_cap 200000 --n_high 30 --n_low 5