Ticket 2715
Problem 1658 -e
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
10 7
38 32 72 82 8 50 6 29 40 15 
7 24 45 9 83 75 37 4 18 25 
2 36 92 64 47 39 49 30 81 78 
97 19 28 94 96 59 65 54 21 76 
60 10 74 11 34 13 44 93 3 52 
12 73 80 87 46 84 77 85 67 71 
66 98 89 90 62 33 22 99 86 53 
20 35 26 68 79 42 69 95 100 23 
51 61 70 17 16 41 14 43 57 63 
56 31 58 5 48 91 27 1 88 55 
Expected Output
GGGGGGGGGG
GGGGGGGGGG
GGGGGGGGGG
GGGGGMMGGG
GGGGMMMMGG
GGGMMMMMMG
GGMMMMMMMM
GGGMMMMMMG
GGGGMMMMGG
GGGGGMMGGG
Generator Parameters
--n_cap 2000 --n_high 20 --n_low 9