목록스타트와 링크 (1)
-
[BOJ - JAVA] 14889 - 스타트와 링크(백트래킹)
# 주소 https://www.acmicpc.net/problem/14889 14889번: 스타트와 링크 예제 2의 경우에 (1, 3, 6), (2, 4, 5)로 팀을 나누면 되고, 예제 3의 경우에는 (1, 2, 4, 5), (3, 6, 7, 8)로 팀을 나누면 된다. www.acmicpc.net # 문제 # 문제 해설 및 코드리뷰 import java.util.*; public class Main{ static int[][] arr; static int n; static boolean[] visit; static int sum[]; static int min = Integer.MAX_VALUE; public static void main(String[] args) { Scanner scan = new..
백준 문제 풀이
2021. 10. 6. 16:22