Ticket 2838
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
6 2
33 14 17 13 28 12 
21 7 4 32 20 1 
27 15 22 6 19 35 
9 24 25 26 31 5 
16 30 8 36 18 11 
29 23 2 34 10 3 
Expected Output
GGGGGG
GGGGGG
GGGGGG
GGGMGG
GGMMMG
GGGMGG
Generator Parameters
--n_cap 2000 --n_high 9 --n_low 3