diff --git "a/suyeun84/202503/14 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" "b/suyeun84/202503/14 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" new file mode 100644 index 00000000..43a56940 --- /dev/null +++ "b/suyeun84/202503/14 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" @@ -0,0 +1,59 @@ +```java +import java.io.*; +import java.util.*; + +public class boj16724 { + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + + static boolean[][] visited, finished; + static int answer; + static int[][] board; + static int[] dr = {-1,1,0,0}; + static int[] dc = {0,0,-1,1}; + public static void main(String[] args) throws Exception{ + StringTokenizer st = new StringTokenizer(br.readLine()); + + int N = Integer.parseInt(st.nextToken()); + int M = Integer.parseInt(st.nextToken()); + + board = new int[N][M]; + visited = new boolean[N][M]; + finished = new boolean[N][M]; + answer = 0; + + for(int i=0;i