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