Ticket 2682
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
5 1
23 7 8 15 16 
11 4 14 24 2 
18 9 20 1 13 
19 25 22 10 3 
21 12 6 5 17 
Expected Output
GGGGG
GGGGG
GGGGG
GMMGG
GGGGG
Generator Parameters
--n_cap 2000 --n_high 9 --n_low 3