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

유니온 파인드 자료구조를 이용해서 최소 스패닝 트리를 구하여 절약할 수 있는 최대 비용을 구했다. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using int64 = long long; struct Info { int house1; int house2; int dist; bool operator(const Info& other) const { return dist > other.dist; } }; vector parent; vector he..
알고리즘
2022. 8. 30. 10:11