Skip to content

Commit f7f6a09

Browse files
author
hangyeol
committed
106차 2번 문제풀이
1 parent f05eb90 commit f7f6a09

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from collections import defaultdict
2+
3+
def main():
4+
n, m = map(int, input().split())
5+
6+
countryMap = defaultdict(list)
7+
8+
for _ in range(m):
9+
A_i, B_i, C_i = map(int, input().strip().split())
10+
countryMap[A_i].append(C_i)
11+
countryMap[B_i].append(C_i)
12+
13+
if __name__ == "__main__":
14+
main()

0 commit comments

Comments
 (0)