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