Ticket 8309
Problem 1672 -d
Submission 158650341
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
7
7
5 7 6 7 1 6 7 
7 6 1 5 7 7 6 
6
3 4 4 4 1 1 
4 3 4 4 1 1 
2
2 1 
2 1 
8
1 8 6 1 1 6 3 4 
4 1 6 1 1 8 6 3 
4
3 2 1 1 
1 1 2 3 
6
4 4 5 4 2 3 
2 3 4 4 4 5 
9
7 3 2 6 8 5 4 1 1 
4 1 2 8 7 6 5 3 1 
Expected Output
NO
NO
YES
NO
NO
NO
NO
Your Output
NO
YES
YES
NO
NO
NO
NO
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 10 --t_low 1