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
- 개발일지
- 시리얼라이제이션
- 언리얼
- DFS
- c#
- 이득우
- 게임개발공모전
- fsm
- lower_bound
- 이분탐색
- binary_search
- 게임개발
- 프로그래머스
- unreal
- 인프런
- 유한상태기계
- 구현
- unity
- 백준
- 운영체제
- 유니티
- 안드로이드
- c++
- 웅진씽크빅
- upper_bound
- UI 자동화
Archives
- Today
- Total
목록뱀 (1)
초고교급 희망

#include #include #include using namespace std; bool map[101][101]; int n, k, l; // 보드 크기, 사과 개수, 방향 변환 횟수 int dx[4] = { 0,1,0,-1 }; int dy[4] = { 1,0,-1,0 }; bool apple[101][101]; int dir[10001]; int d; int main() { // 뱀은 큐. 뱀의 길이가 선입 선출 queue snake; cin >> n >> k; for (int i = 0; i > x >> y; apple[x][y] = true; } cin >> l; for (int i = 0; i < l; i++) { int x; string ..
Algorithm/Baekjoon
2023. 6. 21. 23:26