Add piedroconti to Contributors list
parent
d70dbf90a9
commit
374d7b67fa
|
@ -29,29 +29,29 @@ while PQ:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
SAMPLE INPUT AND OUTPUT
|
SAMPLE INPUT AND OUTPUT
|
||||||
___________________________
|
___________________________
|
||||||
Input:
|
Input:
|
||||||
__________
|
__________
|
||||||
<Vertices> <Edges>
|
<Vertices> <Edges>
|
||||||
5 6
|
5 6
|
||||||
<start node>
|
<start node>
|
||||||
0
|
0
|
||||||
<src node> <des node> <weight>
|
<src node> <des node> <weight>
|
||||||
4 0 1
|
4 0 1
|
||||||
0 1 2
|
0 1 2
|
||||||
0 2 3
|
0 2 3
|
||||||
1 2 4
|
1 2 4
|
||||||
1 3 5
|
1 3 5
|
||||||
2 3 6
|
2 3 6
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
___________
|
___________
|
||||||
Distances from start node 0
|
Distances from start node 0
|
||||||
0
|
0
|
||||||
2
|
2
|
||||||
3
|
3
|
||||||
7
|
7
|
||||||
INF
|
INF
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for i in dist:
|
for i in dist:
|
||||||
|
|
Loading…
Reference in New Issue