incomplete 18870.c(unknown boj c11-clang runtime error), 28707.py & complete aloha dijkstra3(1238.py, 1504.py, 17940.py)

This commit is contained in:
2024-04-08 01:02:21 +09:00
parent dd9dfae8d4
commit b67478dfa4
6 changed files with 228 additions and 1 deletions

24
zeta_python/28707.py Normal file
View File

@@ -0,0 +1,24 @@
import heapq
INF = 10 ** 9 + 1
def solve(N, A, Ops):
pass
if __name__ == '__main__':
N = int(input())
A = list(map(int, input().split()))
M = int(input())
Ops: list[list[tuple]] = [[] for _ in range(N)]
for _ in range(M):
l, r, c = map(int, input().split())
Ops[l].append((r, c))
Ops[r].append((l, c))
"""
문자가 배열된 상태 S_k를 정의할 수 있음.
이에 따라 S_0에서 S_k로 가는 distance를 구할 수 있고, 이로 dijkstra를 전개하면 됨.
"""