Skip to content

Commit

Permalink
Update 013.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless authored Aug 7, 2022
1 parent a8d8435 commit 9d8f24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 013.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void Dijkstra(const std::vector<std::vector<Edge>>& graph, int startIndex, std::
}

// 現在の頂点からの各辺について
for (auto& edge : graph[from])
for (const auto& edge : graph[from])
{
// to までの新しい距離
const long long d = (distances[from] + edge.cost);
Expand Down

0 comments on commit 9d8f24e

Please sign in to comment.