[BOJ] BackTracking /13๋จ๊ณ
ยท
Hi๐๏ธ/Algorithm
13 ๋ฐฑํธ๋ํน ๋ชจ๋ ๊ฒฝ์ฐ๋ฅผ ํ์ํ๋ ๋ฐฑํธ๋ํน ์๊ณ ๋ฆฌ์ฆ์ ๋ฐฐ์ ๋ด
์๋ค. 1 15649 N๊ณผ M (1) ๋ฐฑํธ๋ํน ์
๋ฌธ ๋ฌธ์ 1 import java.util.Scanner; public class Main { public static int[] array; public static boolean[] visit; //๋ฐฉ๋ฌธํ๋์ง ํ์ธ. default = False public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); array = new int[M]; visit = new boolean[N]; dfs(N, M, 0); } public st..