Ticket 933
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
15
15 3
1 2 1 2 1 3 3 3 3 2 3 2 3 1 1 
15 9
5 4 9 2 7 8 2 2 8 5 4 2 8 3 1 
15 36
7 22 12 34 13 27 1 27 17 7 18 5 18 32 2 
15 45
1 27 25 21 35 22 42 30 12 32 13 40 17 8 38 
15 62
2 26 19 40 41 20 3 13 10 13 9 13 38 6 1 
15 55
22 47 53 7 55 48 8 1 41 1 26 38 33 23 1 
15 64
28 57 33 9 12 25 56 56 6 58 40 41 60 57 1 
15 9
8 3 1 5 9 5 2 4 9 8 5 4 9 1 1 
15 86
34 82 81 45 34 28 66 10 30 49 29 70 69 37 1 
15 64
32 8 33 6 25 63 52 38 57 44 35 55 49 21 1 
15 9
1 7 2 6 1 3 5 1 2 2 6 3 1 9 4 
15 53
51 21 52 1 53 20 39 31 9 17 29 13 5 4 21 
15 87
56 62 3 69 67 78 34 24 15 78 45 13 82 56 32 
15 39
17 3 35 17 36 32 35 17 10 18 18 23 29 21 19 
15 36
23 18 19 22 34 31 32 28 6 3 9 36 24 19 1 
Expected Output
Yes
Yes
No
No
No
No
No
Yes
No
No
Yes
No
No
No
No
Generator Parameters
--c_cap 1000000 --c_high 99 --c_low 1 --n_cap 1000000 --n_high 15 --n_low 15 --t_cap 10000 --t_high 15 --t_low 15