Ticket 2627
Problem 1656 -b
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
5
4 6
7 3 1 -8 
3 8
3 -3 9 
4 9
-3 6 2 -5 
3 8
-7 -1 7 
4 6
-2 6 4 8 
Expected Output
YES
NO
YES
YES
YES
Generator Parameters
--k_cap 1000000000 --k_high 9 --k_low 4 --n_cap 200000 --n_high 4 --n_low 3 --t_cap 10000 --t_high 5 --t_low 5 --val_cap 1000000000 --val_floor -1000000000 --val_high 9 --val_low -9