Ticket 1007
Problem 1642 -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
5
5 3
9 4 3 3 1 
5 3
4 4 6 8 7 
5 5
9 8 7 3 8 
5 9
2 1 4 3 7 
5 6
6 7 7 2 7 
Expected Output
1
5
5
5
5
Generator Parameters
--n_cap 5 --n_high 5 --n_low 5 --t_cap 1 --t_high 5 --t_low 5 --val_cap 1000000000 --val_high 9 --val_low 1 --x_cap 1000000 --x_high 9 --x_low 2