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