본문 바로가기 메뉴 바로가기

이것저것 기록 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

이것저것 기록 블로그

검색하기 폼
  • 분류 전체보기 (206)
    • 이것저것 자료 (72)
      • Python (24)
      • Linux (13)
      • Vim (2)
      • Docker (12)
      • C++ (3)
      • Git (1)
      • Shell script (4)
      • 그 외 (13)
    • 공부 (4)
      • Paper (1)
      • Algorithm (0)
      • Architecture&OS (0)
      • 용어 및 개념 (3)
      • 네트워크 (0)
      • 데이터베이스 (0)
      • 자료구조 (0)
      • Spring boot (0)
      • 디자인패턴 (0)
      • Kotlin (0)
    • 일상 (0)
    • 맞춤법 (0)
    • 코딩테스트 대비 (127)
  • 방명록

스타트와링크 (1)
[백준] 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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • n과m
  • 최소신장트리
  • PIP
  • torchscript
  • Python
  • pytorch
  • 파이썬
  • shellscript
  • 카카오
  • CUDA
  • notfound
  • LGSVL
  • BFS
  • 설치
  • docker
  • numpy
  • dfs
  • matplotlib
  • 백준
  • version
  • 설치하기
  • torch
  • 동적프로그래밍
  • 다익스트라
  • error
  • 이것이코딩테스트다
  • 프로그래머스
  • 코딩테스트
  • tensorflow
  • 백트래킹
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바