Ticket 6196
Problem 1671 -b
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
7
2 3 7 11 12 13 15 
3
13 15 17 
Expected Output
NO
YES
Generator Parameters
--n_high 15 --n_low 1 --t_high 2 --t_low 1 --x_high 20 --x_low 1