Ticket 2678
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
8 4
21 19 37 41 7 59 35 40 
47 11 57 43 17 10 5 64 
4 28 56 24 25 34 61 20 
46 9 26 42 36 6 8 14 
22 44 60 63 18 23 12 55 
2 16 52 33 27 32 30 49 
53 58 15 1 50 48 51 13 
62 39 29 31 45 38 3 54 
Expected Output
GGGGMMMG
GGGMMMMM
GGGGMMMG
GGGGGMGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
Generator Parameters
--n_cap 2000 --n_high 9 --n_low 3