CodeForces - 771A Bear and Friendship Condition(思维! + 无向图连通分量)

NoSuchKey