mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-20 07:02:23 +03:00
7 lines
166 B
C++
7 lines
166 B
C++
for(int k = 1 ; k <= n ; k++ ){
|
|
for(int i = 1 ; i <= n ; i++ ){
|
|
for(int j = 1 ; j <= n ; j++ ){
|
|
dist[i][j]=min(dist[i][j],dist[i][k]+dist[k][j]);
|
|
}
|
|
}
|
|
} |