๋ฌธ์ https://www.acmicpc.net/problem/3184 3184๋ฒ: ์ ์ฒซ ์ค์๋ ๋ ์ ์ R๊ณผ C๊ฐ ์ฃผ์ด์ง๋ฉฐ(3 ≤ R, C ≤ 250), ๊ฐ ์๋ ๋ง๋น์ ํ๊ณผ ์ด์ ์๋ฅผ ์๋ฏธํ๋ค. ๋ค์ R๊ฐ์ ์ค์ C๊ฐ์ ๊ธ์๋ฅผ ๊ฐ์ง๋ค. ์ด๋ค์ ๋ง๋น์ ๊ตฌ์กฐ(์ธํ๋ฆฌ, ์, ๋๋์ ์์น)๋ฅผ ์๋ฏธํ๋ค. www.acmicpc.net ํ์ด # ๋ฐฑ์ค 3184๋ฒ ๋ฌธ์ - ์ from collections import deque r, c = map(int, input().split()) graph = [list(map(str, input())) for _ in range(r)] dx, dy = [0,0,-1,1], [1,-1,0,0] def bfs(x, y): q = deque() q.append((x, y)) v..