Skip to content

Commit 58052fe

Browse files
authored
Update 6.py
1 parent 307e00c commit 58052fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

10/6.py

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

1717
n, m = map(int, input().split())
18-
parent = {}
18+
parent = [0] * (n + 1) # 부모 테이블 초기화하기
1919

2020
# 부모 테이블상에서, 부모를 자기 자신으로 초기화
2121
for i in range(0, n + 1):

0 commit comments

Comments
 (0)