Ticket 6742
Problem 1668 -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
6
7 2
3 6 8 3 3 6 8 
3 11
6 1 8 
14 31
5 6 7 6 9 5 4 3 3 3 8 8 3 6 
6 14
9 4 7 3 2 9 
5 69
2 9 3 8 5 
5 43
6 1 8 2 1 
Expected Output
NO
NO
NO
NO
YES
YES
Generator Parameters
--m_high 99 --m_low 1 --n_high 15 --n_low 2 --t_high 10 --t_low 1 --val_high 9 --val_low 1