Skip to content

Commit 9a7cae9

Browse files
committed
[level 3] Title: 네트워크, Time: 0.49 ms, Memory: 9.31 MB -BaekjoonHub
1 parent ea3c56a commit 9a7cae9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

프로그래머스/3/43162. 네트워크/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 3] 네트워크 - 43162
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/43162?language=python3)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/43162)
44

55
### 성능 요약
66

7-
메모리: 10.2 MB, 시간: 1.01 ms
7+
메모리: 9.31 MB, 시간: 0.49 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2025년 03월 07일 15:41:03
19+
2025년 11월 09일 22:50:30
2020

2121
### 문제 설명
2222

프로그래머스/3/43162. 네트워크/네트워크.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ def bfs(start):
1313
visited[neighbor] = True
1414
q.append(neighbor)
1515

16+
1617
visited = [False] * n
1718
ans = 0
1819
for i in range(n):
1920
if not visited[i]:
2021
bfs(i)
2122
ans += 1
23+
2224
return ans

0 commit comments

Comments
 (0)