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