Ticket 6723
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
2 76
2 2 
15 14
6 8 8 1 2 8 4 7 8 7 2 8 4 9 5 
14 59
8 6 7 6 6 2 7 5 9 5 7 6 5 3 
14 67
7 9 5 9 2 8 9 5 2 6 5 7 7 9 
12 51
9 7 7 2 6 9 4 3 5 6 2 9 
5 50
4 3 7 4 5 
9 68
8 2 9 7 6 2 7 3 5 
8 56
5 4 5 1 4 4 7 2 
13 81
6 3 5 6 8 4 3 2 5 7 2 1 4 
Expected Output
YES
NO
NO
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