Ticket 3453
Problem 1648 -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
9
2 91
33 1 
7 2
1 1 1 2 1 2 1 
2 30
20 23 
9 2
2 1 2 1 2 2 1 1 2 
2 23
20 1 
5 50
13 17 13 7 1 
9 91
71 33 26 38 26 25 20 60 74 
3 88
56 6 1 
9 75
55 62 30 20 50 17 7 45 1 
Expected Output
Yes
Yes
No
Yes
Yes
No
No
No
No
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