Ticket 2880
Problem 1656 -c
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
6
1 4 2 9 3 6 
2
8 6 
3
7 9 5 
5
7 7 7 2 5 
9
3 0 9 9 2 1 9 3 1 
9
1 6 4 1 9 7 6 3 5 
5
7 3 9 8 5 
4
0 6 3 5 
2
6 1 
1
5 
Expected Output
NO
YES
YES
YES
NO
NO
YES
YES
YES
YES
Generator Parameters
--n_cap 100000 --n_high 9 --n_low 1 --t_cap 10000 --t_high 10 --t_low 10 --val_cap 1000000000 --val_high 9 --val_low 0