Ticket 10914
Problem 1686 -c
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
11
8
3 3 2 3 1 1 2 3 
9
3 3 1 3 0 0 2 1 3 
6
1 3 3 2 2 3 
8
3 3 2 0 1 2 3 0 
4
2 2 3 2 
5
3 2 0 3 0 
6
2 1 2 1 2 0 
4
2 1 0 3 
8
2 1 0 0 2 1 1 0 
5
3 1 0 0 2 
5
1 2 0 3 1 
Expected Output
YES
1 3 1 3 2 3 2 3
NO
YES
1 3 2 3 2 3
YES
0 2 0 3 1 3 2 3
NO
NO
YES
0 2 1 2 1 2
YES
0 2 1 3
YES
0 1 0 1 0 2 1 2
NO
NO
Generator Parameters
--n_high 9 --n_low 3 --t_high 20 --t_low 1 --val_high 3 --val_low 0