[Python] ๋ฐฑ์ค #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 ํ์ด from itertools import permutations,combinations import sys input = sys.stdin.readline n = int(input()) score=[] for _ in range(n): score.append(list(map(int,input().split()))) team_range = [i for i in range(n)] team = list(combin..