Challenges
Graph: shortest path
Misc
Hard
Graph theory
Solves: 5
Graph: shortest path
Author: CyberSamSU
Points
75
Below, the edges of a weighted graph are given in the format tugun1-tugun2:og'irlik (all edges are bidirectional):
D-E:8
C-E:1
H-D:8
I-D:8
B-H:8
F-B:7
J-D:1
A-I:12
G-B:5
F-H:12
I-J:4
F-C:2
F-J:2
G-F:3
F-I:2
Find the total length of the shortest path (with the smallest sum of weights) from node A to node J.
Enter the answer as a number only (without spaces, units or symbols).
To submit a flag, log in.