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 |
Tags
- 알고리즘
- 문자열
- 시뮬레이션
- 스택
- BFS
- 투 포인터
- 브루트포스
- VR
- 다익스트라
- 백트래킹
- Unreal Engine 5
- 수학
- XR Interaction Toolkit
- 다이나믹 프로그래밍
- 트리
- 그래프
- ue5
- Team Fortress 2
- 정렬
- DFS
- c++
- 재귀
- 누적 합
- 백준
- 구현
- 유니온 파인드
- 자료구조
- 우선순위 큐
- 그리디 알고리즘
- 유니티
Archives
- Today
- Total
목록백준 1238 C++ (1)
1일1알

다익스트라를 모든 점에서 돌리면서 각 점에서의 최단 거리를 저장해놓고 [n][x] + [x][n]중 가장 큰 값을 찾아서 출력하였다. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using int64 = long long; int n, m, x; vector dist; vector graph; struct VertexCost { bool operator(const VertexCost& other) const { return cost > other.cost; ..
알고리즘
2022. 6. 26. 10:45