[백준] 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
- n과m
- 최소신장트리
- PIP
- torchscript
- Python
- pytorch
- 파이썬
- shellscript
- 카카오
- CUDA
- notfound
- LGSVL
- BFS
- 설치
- docker
- numpy
- dfs
- matplotlib
- 백준
- version
- 설치하기
- torch
- 동적프로그래밍
- 다익스트라
- error
- 이것이코딩테스트다
- 프로그래머스
- 코딩테스트
- tensorflow
- 백트래킹
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함