Skip to content

Commit 940cabb

Browse files
committed
81차 2번 문제 풀이 (푸는중)
1 parent 15955f4 commit 940cabb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

live8/test81/문제2/박희경.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import sys
2+
3+
input = sys.stdin.readline
4+
5+
n = int(input())
6+
m = int(input())
7+
network = [[] * (n + 1) for _ in range(n + 1)]
8+
9+
for _ in range(m):
10+
x, y = map(int, input().split())
11+
network[x].append(y)
12+
network[y].append(x)
13+
14+
# [[], [2, 5], [1, 3, 5], [2], [7], [1, 2, 6], [5], [4]]

0 commit comments

Comments
 (0)