Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- Lv. 2
- SQL 고득점 KIT
- Lv. 0
- 타입스크립트
- dfs
- 다이나믹프로그래밍
- 소프티어
- 너비 우선 탐색
- Lv. 3
- Java
- 자바스크립트
- Dynamic Programming
- softeer
- bfs
- 스택
- DP
- Lv. 1
- Typescript
- level3
- Python
- programmers
- group by
- 문자열
- C언어
- level 3
- 파이썬
- 프로그래머스
- Stack
- javascript
- 브루트포스
Archives
- Today
- Total
목록[21년 재직자 대회 본선] (1)
몸과 마음이 건전한 SW 개발자
Softeer Level 3 거리 합 구하기 Python
문제 링크 https://softeer.ai/practice/6258 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline nodeDict = dict() N = int(input()) adjL = [[] for _ in range(N+1)] for _ in range(N-1): start, to, distance = map(int, input().split()) adjL[start].append(to) adjL[to].append(start) nodeDict[(start, to)] = distance nodeDict[(to, start)] = distance..
알고리즘
2024. 2. 8. 21:19