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

유니온 파인드를 이용해서 몇개의 집합으로 나누어져 있는지 구했다. #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; int dRow[4] = { -1,0,1,0 }; int dCol[4] = { 0,1,0,-1 }; vector parent; vector height; vector board; pair Index2RowCol(int idx) { int row = idx / m; int col = idx..
알고리즘
2022. 7. 22. 11:58