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