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

I'm Mapping-

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

I'm Mapping-

검색하기 폼
  • 분류 전체보기 (10)
    • 카트 (3)
    • LOL (2)
    • 메이플 (1)
    • Python (TEST) (3)
  • 방명록

Python (TEST) (3)
BOJ - 9370. 미확인 도착지

www.acmicpc.net/problem/9370 9370번: 미확인 도착지 문제 (취익)B100 요원, 요란한 옷차림을 한 서커스 예술가 한 쌍이 한 도시의 거리들을 이동하고 있다. 너의 임무는 그들이 어디로 가고 있는지 알아내는 것이다. 우리가 알아낸 것은 그들이 s지�� www.acmicpc.net 1. S. G. H을 시작점으로 하여 3번에 걸쳐 다익스트라: import sys from heapq import heappush, heappop for _ in range(int(input())): n, m, t = map(int, input().split()) s, g, h = map(int, input().split()) road = [[] for _ in range(n + 1)] for _ in..

Python (TEST) 2020. 8. 7. 14:35
SWEA - 1249. 보급로

for tc in range(1, 1 + int(input())): n = int(input()) m = [list(map(int, input())) for _ in range(n)] v = [[9 * n * n] * n for _ in range(n)] v[0][0] = 0 st = [(0, 0)] while st: st2 = [] for r, c in st: for dr, dc in ((1, 0), (-1, 0), (0, 1), (0, -1)): if 0

Python (TEST) 2020. 8. 5. 20:55
SWEA - 1767. 프로세서 연결하기

for tc in range(1, 1 + int(input())): n = int(input()) m = [] ps = [] for r in range(n): l = list(map(int, input().split())) m.append(l) if 0 ans[0] or (core == ans[0] and wire < ans[1]): ans = [core, wire] elif n - i ..

Python (TEST) 2020. 8. 5. 15:33
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바