We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60158cd commit 307e00cCopy full SHA for 307e00c
10/4.py
@@ -16,7 +16,7 @@ def union_parent(parent, a, b):
16
17
# 노드의 개수와 간선(Union 연산)의 개수 입력 받기
18
v, e = map(int, input().split())
19
-parent = {}
+parent = [0] * (v + 1) # 부모 테이블 초기화하기
20
21
# 모든 간선을 담을 리스트와, 최종 비용을 담을 변수
22
edges = []
0 commit comments