Ticket 6488
Problem 1674 -d
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
5
9
8 7 6 4 7 8 6 6 9 
5
9 2 8 9 5 
6
4 7 8 7 1 7 
8
7 9 7 4 7 8 6 4 
1
1 
Expected Output
NO
NO
NO
NO
YES
Generator Parameters
--n_high 10 --n_low 1 --t_high 5 --t_low 5 --val_high 9 --val_low 1