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