Educational Codeforces Round 14 D. Swaps in Permutation(并查集)

NoSuchKey