https://www.acmicpc.net/problem/2667 ํ์ด์ด์ ์ ํ์๋ ์์ญ๊ตฌํ๊ธฐ์ ์ ์ฌํ ๋ฌธ์ ๋ค. (https://marginata.tistory.com/173)์์ญ๊ตฌํ๊ธฐ๊ฐ ์์น ๋์ง ์์ ์์ญ์ ๋์ด๋ฅผ ๊ตฌํ๊ฒ์ด๋ผ๋ฉด ๋ฐ๋๋ก ๋จ์ง๋ฒํธ๋ถ์ด๊ธฐ๋ ์ง์ด ์๋๊ณณ์ ๋์ด๋ฅผ ๊ตฌํ๋ฉด ๋๋ค.์ฃผ์ํ ์ ์ 0001010 ์ด๋ฐ์์ผ๋ก ๊ณต๋ฐฑ์์ด ์ ๋ ฅ์ ๋ฐ๊ธฐ ๋๋ฌธ์ charAt()์ ์ด์ฉํด์ ํ์๋ฆฌ์ฉ charํ์ผ๋ก ์ถ์ถํ ๋ค์ ์ ์ํ์ผ๋ก ๋ณํํด์ค์ผ ํ๋ค. ์ ์ฒด ์ฝ๋import java.io.*;import java.util.*;public class Main{ static int[][] map; //์ง๋ static int[] dx = {1,-1,0,0}; static int[] dy = {0,0,1,..