Head of a Gang(並查集,多連通圖)

題目描述 One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to
相關文章
相關標籤/搜索