This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_12_B
import sys
input = sys.stdin.readline
from Graph.ShortestPath.dijkstra_v2 import dijkstra_v2
def main():
n = int(input())
edges = [list(map(int, input().split())) for i in range(n)]
INF = 10 ** 18
matrix = [[INF] * n for i in range(n)]
for v in range(n):
matrix[v][v] = 0
for i in range(1, len(edges[v]) // 2):
nxt_v, cost = edges[v][slice(2 * i, 2 * (i + 1))]
matrix[v][nxt_v] = cost
dist = dijkstra_v2(0, matrix)
for v, ans in enumerate(dist):
print(v, ans)
if __name__ == '__main__':
main()
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle
raise NotImplementedError
NotImplementedError