Ticket 9871
Problem 1691 -d
Submission 159208968
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
3
9
-1 1 0 -1 1 1 1 1 0 
8
1 0 -1 1 1 1 1 1 
15
1 0 -1 0 -1 -1 -1 -1 1 -1 1 0 -1 -1 0 
Expected Output
NO
NO
YES
Your Output
NO
NO
NO
Difference
Generator Parameters
--n_high 15 --n_low 1 --t_high 5 --t_low 1 --val_high 1 --val_low -1