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