Ticket 5337
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
8
8 77
5 6 8 7 3 5 5 9 
11 89
5 7 8 7 5 8 5 5 3 7 9 
12 53
4 2 2 3 5 2 1 4 6 8 8 6 
11 43
4 8 4 3 2 4 3 2 7 9 3 
8 37
7 5 2 2 4 3 2 6 
9 67
6 7 3 7 4 6 7 1 9 
13 69
1 1 6 7 8 2 9 6 8 3 6 3 8 
9 7
8 2 9 6 2 5 9 5 8 
Expected Output
YES
YES
NO
NO
NO
YES
NO
NO
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