본문 바로가기

clohi 님의 블로그

검색하기
clohi 님의 블로그
프로필사진 clohi

  • 분류 전체보기 (29)
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (6)
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
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
Tags
  • dfs
  • 15900
  • 구현
  • BOJ
  • 14503
  • 16713
  • python
  • 8983
  • 17299
  • 스택
  • 10799
  • BFS
  • 완전탐색
  • 10546
  • 11726
  • 3986
  • 누적합
  • 완전 탐색
  • 투 포인터
  • 백준
  • 알고리즘
  • dp
  • 이분탐색
  • 10431
  • 14248
  • 5972
  • 브루트포스
  • 시뮬레이션
  • 24480
  • 그리디
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록5972 (1)

clohi 님의 블로그

[BOJ / Python] 5972 : 택배 배송

https://www.acmicpc.net/problem/5972 문제 코드import heapqimport sysinput = sys.stdin.readlineINF = int(1e9)n, m = map(int, input().split())graph = [[] for _ in range(n+1)]distance = [INF for _ in range(n+1)]for i in range(m): a, b, c = map(int, input().split()) graph[a].append((b,c)) graph[b].append((a,c))def dijkstra(start): q = [] heapq.heappush(q, (0, start)) distance[start] = ..

Algorithm/BOJ 2025. 5. 18. 20:39
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바