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

어떤 더러운 칸들을 청소했는지를 비트로 관리하고 방문 표시를 3차원 배열(비트, 행, 열) 로 관리해서 bfs 탐색을 이용해서 풀었다. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using int64 = long long; int r, c; int dRow[4] = { -1,0,1,0 }; int dCol[4] = { 0,1,0,-1 }; struct Info { int row; int col; int dirtyBit; int moveCnt; }; vect..
알고리즘
2022. 7. 26. 12:44