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