유기농배추
-
[Algorithm] 백준 알고리즘 1012 (유기농 배추)Algorithm 2020. 3. 28. 13:15
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 T, M, N, K; static int map[][]; static boolean visited[][]; static int count; static Queue q = new LinkedList(); public static void main(String[] args) throws IOException { Buffer..