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