2146
-
[백준] 2146 다리만들기 #JAVAAlgorithm Solving/BAEKJOON 2021. 2. 25. 01:01
[백준] 2146 다리만들기 #JAVA 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class Main { static int n; static int[][] map; static int[][] island; static int[][] dist; static int[] dx = {0,1,0,-1}; static int[] dy = {1,0,-1,0}; static Queue queue; public static v..