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