[BOJ]14889번: 스타트와 링크 (c++)
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 방법 1: 백트랙킹 #include #include #include using namespace std; const int MAX = 20; int min_dif = 1000; int S[MAX][MAX]; int N; // 점수 차이 구하기 int get_point_dif(vector& team_s, vector& team_l) { int sum_s = 0; int sum_l = 0; for (int i = 0; i..
2020. 5. 21.