반응형 안전 영역1 백준_2468번_안전영역_자바 백준_2468번_안전영역_자바 해당 문제도 DFS와 BFS로 모두 풀어보았습니다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int n; static int[][] map; static boolean[][] chk; static int[] dx ={1,-1,0,0}; static int[] dy ={0,0,1,-1}; static int result; static int tmp; public static void main(String[] args) throws IOException { Buffered.. 2023. 12. 13. 이전 1 다음 반응형