単一始点最短経路 dijkstra法

#include <bits/stdc++.h> using namespace std; static const int MAX_N = 100; static const int WHITE = 0;//未踏 static const int GRAY = 1;//確定している点と隣接 static const int BLACK = 2;//確定 static const int INF = 1<<21; int M[MAX_N][MAX_N] = {0};//隣接行列 int d[MAX_N] = {0};//最短経路コスト int color[MAX_N] =</bits/stdc++.h>…