Ticket 10655
Problem 1685 -a
Submission 159496706
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
1 0 3 0 2 1 1 3 2 
5
2 1 2 2 1 
5
2 3 3 0 3 
8
1 3 2 3 3 0 2 2 
8
2 2 1 3 0 1 2 2 
Expected Output
NO
NO
NO
YES
0 2 1 3 2 3 2 3
NO
Your Output
NO
NO
NO
NO
NO
Difference
Generator Parameters
--n_high 9 --n_low 3 --t_high 5 --t_low 5 --val_high 3 --val_low 0