[백준] 14889번 스타트와 링크
from itertools import combinations n = int(input()) graph = [] for _ in range(n): graph.append(list(map(int, input().split()))) minnum = 10000000000 tmp = [i for i in range(n)] for start_team in combinations(tmp, int(n/2)): field_team = list(set(tmp) - set(start_team)) score1 = 0 score2 = 0 for a in combinations(start_team, 2): score1 = score1 + graph[a[0]][a[1]] + graph[a[1]][a[0]] for a in com..
코딩테스트 대비
2022. 2. 25. 13:44
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- torch
- torchscript
- matplotlib
- n과m
- 카카오
- 코딩테스트
- 최소신장트리
- 설치
- 설치하기
- 백준
- tensorflow
- numpy
- CUDA
- PIP
- 이것이코딩테스트다
- dfs
- version
- 백트래킹
- notfound
- error
- Python
- pytorch
- 다익스트라
- BFS
- 파이썬
- LGSVL
- docker
- 프로그래머스
- 동적프로그래밍
- shellscript
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함