백준 구현1 [백준] 로봇청소기 [Gold 5, 코드 + 해설] 구현 & 시뮬레이션 https://www.acmicpc.net/problem/14503 14503번: 로봇 청소기 첫째 줄에 방의 크기 $N$과 $M$이 입력된다. $(3 \le N, M \le 50)$ 둘째 줄에 처음에 로봇 청소기가 있는 칸의 좌표 $(r, c)$와 처음에 로봇 청소기가 바라보는 방향 $d$가 입력된다. $d$가 $0$인 경우 북쪽 www.acmicpc.net 코드 import sys input = sys.stdin.readline # 방의 크기를 입력받는다. n, m = map(int, input().split()) # 좌표, 방향이 입력된다. r, c, d = map(int, input().split()) # 탐색할 맵을 입력 받는다. board = [input().split() .. 2023. 7. 1. 이전 1 다음