백준 14503 변형 bfs문제 -java
소스코드 package baekjoon; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Baek14503 { //북 동 남 서 static int[] dx = {-1, 0, 1, 0}; static int[] dy = {0, 1, 0, -1}; static int n, m, row, col, seeDir; static int[][] map; static int clean = 1; public static void main(String[] args) throws IOException { BufferedRe..
2023. 12. 2.