[BOJ 14503] 로봇청소기
출처 : https://www.acmicpc.net/problem/14503 #include #include using namespace std; int N, M, K, result, direction, starti, startj;int map[50][50];bool visited[50][50];int dir[4][2] = { {0,-1},{1,0},{0,1},{-1,0} };bool finished; void cal(int i, int j, int d){if (finished) return; visited[i][j] = true; map[i][j] = 2; int startD; if (d == 0) startD = 0;else if (d == 1) startD = 3;else if (d == 2) st..
알고리즘/BOJ
2018. 8. 2. 17:52
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- string
- 게리맨더링 2
- 입출력
- 알고리즘
- 시간 복잡도
- SWEA
- scanf
- SW Expert Academy
- 17144
- 17143
- 이차원 배열과 연산
- 17837
- STL
- boj
- hackerrank
- 연구소 3
- 17779
- 17140
- 백준
- 트렌드
- 미세먼지 안녕!
- 새로운 게임 2
- 2018 KAKAO BLIND RECRUITMENT
- 팁
- 삼성
- DFS
- 역량 테스트
- 2018 카카오 블라인드 채용
- DP
- 17142
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함