Skip to content

Commit 307e00c

Browse files
authored
Update 4.py
1 parent 60158cd commit 307e00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10/4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def union_parent(parent, a, b):
1616

1717
# 노드의 개수와 간선(Union 연산)의 개수 입력 받기
1818
v, e = map(int, input().split())
19-
parent = {}
19+
parent = [0] * (v + 1) # 부모 테이블 초기화하기
2020

2121
# 모든 간선을 담을 리스트와, 최종 비용을 담을 변수
2222
edges = []

0 commit comments

Comments
 (0)