Ticket 932
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
9
9 65
10 61 43 21 13 14 38 17 55 
9 5
1 2 2 1 2 5 1 2 1 
9 21
5 15 10 16 1 1 20 7 1 
9 99
87 85 99 67 59 77 94 29 80 
9 81
9 55 67 13 3 59 1 65 60 
9 39
32 22 13 33 1 23 36 31 1 
9 65
64 28 49 8 5 16 52 29 1 
9 74
10 27 8 72 42 72 54 67 55 
9 88
51 65 78 20 73 24 20 1 72 
Expected Output
No
Yes
No
No
No
No
No
No
No
Generator Parameters
--c_cap 1000000 --c_high 99 --c_low 1 --n_cap 1000000 --n_high 9 --n_low 9 --t_cap 10000 --t_high 9 --t_low 9