Ticket 351
Problem 1637 -a
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
2
6
5 1 3 6 5 4 
5
2 5 7 5 6 
Expected Output
YES
YES
Generator Parameters
--n_cap 10000 --n_high 7 --n_low 1 --t_cap 100 --t_high 3 --t_low 1 --val_cap 1000000000 --val_high 7 --val_low 1