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