Ticket 1297
Problem 1649 -d
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
7
8 90
47 46 26 82 52 69 65 1 
7 63
59 35 2 36 11 6 1 
1 4
1 
9 37
33 4 17 1 27 10 28 3 1 
6 10
5 1 7 8 9 1 
4 68
58 28 16 30 
3 7
2 1 1 
Expected Output
No
No
Yes
No
Yes
No
Yes
Generator Parameters
--c_cap 1000000 --c_high 99 --c_low 1 --n_cap 1000000 --n_high 9 --n_low 1 --t_cap 10000 --t_high 9 --t_low 1