연결요소의개수
-
[Algorithm] 백준 알고리즘 11724 (연결 요소의 개수)Algorithm 2020. 3. 28. 16:23
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 LinkCount { static int N, M, count; static int map[][]; static boolean visited[]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamR..