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