WA

dhahn99 Reply 4 years 51 weeks ago
예제는 맞게 작동하는 것 같은데 WA가 뜨는 이유를 모르겠습니다. discuss에 있는 예제 몇 개도 넣어 봤는데 잘 작동하는 것 같습니다..
withcs2 Reply 4 years 51 weeks ago
int[][]matrix1={ {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,0,0,0,1}, {0,0,0,0,0,1,0}, {0,0,0,0,1,0,0}, {0,0,0,1,0,0,0}, }; int[][]matrix2={ {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,1,0,0,0}, {0,0,0,0,1,0,0}, {0,0,0,0,0,1,0}, {0,0,0,0,0,0,1}, }; int[][]matrix3={ {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,0,0,0,1}, {0,0,0,0,0,0,1}, {0,0,0,0,0,0,1}, {0,0,0,0,0,0,1}, }; int[][]matrix4={ {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,0,0,0,0}, {0,0,0,1,1,1,1}, }; System.out.println(isGameEnd(matrix1)); System.out.println(isGameEnd(matrix2)); System.out.println(isGameEnd(matrix3)); System.out.println(isGameEnd(matrix4)); 실행해보시면 될 것 같습니다. break와 continue에 대해 다시 공부해보세요.