Written by
java-style
on
on
백트래킹 알고리즘, 백준 14889 스타트와 링크
백트래킹 알고리즘, 백준 14889 스타트와 링크
728x90
https://www.acmicpc.net/problem/14889
package com.company; import java.util.Scanner; public class StartAndLink_14889_me { static int min_diff = Integer.MAX_VALUE;; static int N; static boolean[] ans; static int[][] arr; public static void main(String [] args){ Scanner sc = new Scanner(System.in); N = sc.nextInt(); arr = new int[N][N]; ans = new boolean[N]; for (int i=0; i
728x90
from http://nolja98.tistory.com/287 by ccl(A) rewrite - 2021-12-03 04:01:50