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

모든 정점을 돌면서 다익스트라를 이용해서 정점까지의 거리가 m 이하면 아이템의 개수를 더해서 아이템이 가장 많은 정점을 찾았다. #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, r; vector Item; vector graph; struct VertexCost { bool operator(const VertexCost& other) const { return cost > other.cost; } i..
알고리즘
2022. 6. 25. 10:17