백준 : 단지번호붙이기 – 2667번
import java.util.*; public class Numbering { static int()() map; static boolean()() visited; static int() dx = {0, 0, 1, -1}; static int() dy = {1, -1, 0, 0}; static int N, count; static ArrayList<Integer> counts; public static void main(String() args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); map = new int(N)(N); visited = … Read more