knightzone.studio
#UVa:10608-Friends - 翼世界夢想領域
利用disjoint set去實作這樣的關係即可得解。 P.S. 不得使用while(scanf(&#8220...