Ticket 1838
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
3
1 6
5 
43 49
15 3 21 46 19 14 47 42 19 33 9 39 1 46 22 3 29 5 41 7 19 16 49 44 34 40 5 10 14 37 38 25 34 24 42 21 6 9 42 37 27 22 1 
29 14
12 7 14 11 5 14 4 2 3 13 11 1 10 10 3 3 11 1 1 9 11 8 7 4 6 12 7 5 1 
Expected Output
No
No
Yes
Generator Parameters
--c_cap 1000000 --c_high 100 --c_low 1 --n_cap 1000000 --n_high 100 --n_low 1 --t_cap 10000 --t_high 10 --t_low 1