pat A1034 Head of a Gang
前言这题算是我第一次写图相关的算法题,也是第一次用map容器,需要记录的点很多,因此在这里稍作总结,方便后续回忆。题目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 t







