편집 시간: 2022년 2월 9일 오후 6:29

코드

Algorithm/2606.py at main · Junroot/Algorithm

풀이

bfs또는 dfs로 연결되어 있는 컴퓨터를 확인하면 된다.