로직은 그냥 BF로 했는데 코딩에서 뭐가 문젠지 자꾸 에러가 나네.... 하루동안 코드 고치다가 포기 ㅠㅠ ----------------------------------------------------- {{{ import java.util.Scanner; class Case { int m; int n; char[][] grid; int k; String[] str; int index; /*int[][] direction= {{-1,-1}, {0,1}, {1,1}, {-1,-1}, {0,-1}, {1,-1}, {-1,0}, {1,0}};*/ int[] y = {-1, -1, -1, 0, 1, 1, 1, 0}; int[] x = {-1, 0, 1, 1, 1, 0, -1, -1}; int length; Case(int m, int n, char[][] grid, int k, String[] str) { this.m = m; this.n = n; this.grid = grid.clone(); this.k = k; this.str = str.clone(); /*index = 0;*/ length = 1; //첫 단어 /*direction = new int[2][4];*/ } void output() { for(int i=0; i= 0 && temp_r < m && temp_c >=0 && temp_c