Codeforces Round #692 (Div. 2) C. Peaceful Rooks(图论,并查集)

NoSuchKey