diff --git "a/khj20006/202502/06 BOJ G3 \354\225\204\352\270\260\353\217\274\354\247\200\354\231\200 \353\212\221\353\214\200.md" "b/khj20006/202502/06 BOJ G3 \354\225\204\352\270\260\353\217\274\354\247\200\354\231\200 \353\212\221\353\214\200.md" new file mode 100644 index 00000000..f9255992 --- /dev/null +++ "b/khj20006/202502/06 BOJ G3 \354\225\204\352\270\260\353\217\274\354\247\200\354\231\200 \353\212\221\353\214\200.md" @@ -0,0 +1,92 @@ +```java + +import java.util.*; +import java.io.*; + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static long nextLong() {return Long.parseLong(st.nextToken());} + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + static char[][] arr; + static boolean[][] vis; + static int[] dx = {1,0,-1,0}; + static int[] dy = {0,1,0,-1}; + + static int N, M; + + + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + } + + static void ready() throws Exception{ + + nextLine(); + N = nextInt(); + M = nextInt(); + arr = new char[N][M]; + vis = new boolean[N][M]; + for(int i=0;i Q = new LinkedList<>(); + for(int i=0;i