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