[백준] 스타트와링크 python (201004)
1. 문제 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 2. 풀이 import sys from itertools import permutations, combinations num = int(sys.stdin.readline()) skill_matrix = [] for idx in range(num): skill_matrix.append(list(map(int, sys.stdin.readline().split()))) players = list(range(num)) team_..
2020. 10. 4.