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