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