Ticket 5797
Problem 1672 -d
Submission 154839352
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
9
6
5 5 2 6 5 1 
5 1 2 5 6 5 
6
3 6 4 6 3 1 
3 6 4 3 6 1 
4
1 1 2 2 
1 1 2 2 
6
4 6 6 6 6 5 
4 6 6 5 6 6 
7
5 3 6 6 3 5 2 
6 5 3 6 3 2 5 
4
4 1 2 3 
2 1 3 4 
1
1 
1 
9
7 2 4 7 6 7 1 4 5 
4 6 2 7 4 7 5 1 7 
6
3 2 5 2 4 3 
3 4 2 5 2 3 
Expected Output
NO
NO
YES
NO
NO
NO
YES
NO
NO
Your Output

          
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 10 --t_low 1