Ticket 1423
Problem 1650 -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
2

6 74
8 9 12 18 20 40 

9 87
7 11 16 17 19 27 38 44 56 
Expected Output
1
2
Generator Parameters
--d_cap 1000000000 --d_high 99 --n_cap 200000 --n_high 9 --n_low 2 --t_cap 10000 --t_high 2 --t_low 1