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

bfs로 같은 색이 4개이상 이어져있으면 그 부분을 터트려서 빈 공간으로 만들고 다 터지면 밑에서부터 탐색하면서 밑에 빈 공간이 있으면 밑으로 내려오도록 했다. #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; const int ROW = 12; const int COL = 6; int dRow[4] = { -1,0,1,0 }; int dCol[4] = { 0,1,0,-1 }; vector board(ROW, vector(COL)); vector found..
알고리즘
2022. 5. 19. 13:59