Ticket 5336
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
9
14 63
7 5 5 9 7 3 1 7 5 3 2 9 7 7 
13 93
2 4 1 2 9 5 1 8 3 9 2 3 4 
3 44
7 9 3 
11 39
3 8 8 1 2 5 4 1 6 7 6 
7 69
5 3 4 4 5 3 5 
5 50
9 1 7 8 8 
10 66
6 7 9 8 7 7 2 3 7 7 
12 13
2 4 1 2 3 5 8 9 9 4 4 6 
6 24
5 8 5 7 8 9 
Expected Output
NO
YES
YES
NO
YES
YES
NO
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