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:
24
zeta_python/28707.py
Normal file
24
zeta_python/28707.py
Normal 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를 전개하면 됨.
|
||||
"""
|
||||
Reference in New Issue
Block a user