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