Codeforces Round #659 (Div. 2)1384C String Transformation 1(并查集,好题)

NoSuchKey