Ticket 2203
Problem 1631 -e
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
13
2 6 4 4 1 6 3 3 1 6 1 1 6 
Expected Output
10
Generator Parameters
--n_cap 200000 --n_high 15 --n_low 10