Ticket 2824
Problem 1658 -e
Submission 151201072
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
3 1
8 1 5 
9 3 6 
7 4 2 
Expected Output
MGG
MGG
GGG
Your Output
GGG
MGG
MGG
Difference
Generator Parameters
--n_cap 2000 --n_high 5 --n_low 3