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