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