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