Комментарии
На SupermagzzzCodeforces Round #650 (Div. 3) Editorial, 13 месяцев назад
0

I also had the same doubt , If cycle length is 8 7 2 and letters count is 9 8 here also greedy fails . Glad to see comment regarding the same .