BOJ 9663
-
boj)9663 - N-QueenPS/boj 2020. 11. 19. 12:29
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 import java.util.Scanner; public class boj_9663 { static Scanner sc = new Scanner(System.in); static int n, ans; static boolean[] v1, v2, v3; public static void main(String[] args) { n = sc.nextInt(); v1 = new boolean[n]; v2 = new boolean[n*2 - 1]; v3 = new boolean[n*2 - 1]; func(0);..