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