Skip to content

Commit cedd348

Browse files
author
hangyeol
committed
117차 2번 문제풀이
1 parent 311633d commit cedd348

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
from collections import defaultdict
3+
4+
5+
def main():
6+
input = sys.stdin.readline
7+
8+
N = int(input())
9+
graph = defaultdict(list)
10+
11+
for _ in range(N-1):
12+
a, b = map(int, input().split())
13+
graph[a].append(b)
14+
15+
print(graph)
16+
17+
if __name__ == '__main__':
18+
main()

0 commit comments

Comments
 (0)