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

다익스트라 알고리즘 안에 parent를 저장하는 배열을 추가해서 풀었다. #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; vector graph; struct VertexCost { bool operator(const VertexCost& other) const { return cost > other.cost; } int vertex; int cost; }; void Dijkstra(int start..
알고리즘
2022. 6. 27. 10:48