Codeforces Round #446 (Div. 2) E. Envy (并查集)

NoSuchKey