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