Ticket 1917
Problem 1647 -f
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
6
6 1 4 7 2 3 
Expected Output
2
Generator Parameters
--n_cap 500000 --n_high 7 --n_low 2 --params_help Help --val_cap 100 --val_high 9 --val_low 1