Ticket 6159
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
14 27
5 3 3 2 2 3 4 3 6 4 6 7 7 7 
11 49
3 3 5 2 8 3 6 1 6 3 8 
4 29
2 1 9 4 
8 41
8 4 4 1 2 1 1 5 
4 47
2 8 8 8 
4 58
1 9 5 1 
Expected Output
NO
NO
YES
YES
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