Codeforces Round #617 (Div. 3) E1String Coloring (easy vers&&E2. String Coloring (hard version)(贪心)

NoSuchKey