Ticket 5936
Problem 1672 -d
Submission 155008721
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
5
3
1 1 1 
1 1 1 
9
4 2 4 9 9 9 5 4 7 
9 9 4 2 9 7 5 4 4 
4
4 3 4 4 
4 4 3 4 
4
4 3 4 4 
4 3 4 4 
2
1 2 
2 1 
Expected Output
YES
NO
NO
YES
NO
Your Output
YES
NO
YES
YES
NO
Difference
Generator Parameters
1000