단지번호붙이기
-
[Algorithm] 백준 알고리즘 2667 (단지 번호 붙이기)Algorithm 2020. 3. 22. 00:05
java코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class SetNumber { static int N; static int map[][]; static boolean visited[][]; static int house[]; static int num=1; public static void main(String[] args) throws IOException { B..