Skip to content

Commit 617df1e

Browse files
authored
Update 7.py
1 parent 3044514 commit 617df1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

10/7.py

Lines changed: 2 additions & 2 deletions
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 = [0] * (n + 1) # 부모 테이블 초기화하기
18+
parent = [0] * (n + 1) # 부모 테이블 초기화
1919

2020
# 부모 테이블상에서, 부모를 자기 자신으로 초기화
2121
for i in range(0, n + 1):
@@ -24,7 +24,7 @@ def union_parent(parent, a, b):
2424
# 각 연산을 하나씩 확인한다.
2525
for i in range(m):
2626
oper, a, b = map(int, input().split())
27-
# 합치기(Union) 연산인 경우
27+
# 합치합(Union) 연산인 경우
2828
if oper == 0:
2929
union_parent(parent, a, b)
3030
# 찾기(Find) 연산인 경우

0 commit comments

Comments
 (0)