02 2019 档案
摘要:#include #include #include #include using namespace std; const int MAXV = 1000;//最大顶点数 const int INF = 1000000000; //n为顶点数 //MAXV为最大顶点数 int n,m; double G[MAXV][MAXV]; double d[MAXV];// 顶点到集合S的...
阅读全文
摘要:#include #include #include #include #include using namespace std; //Floyd算法 //从i到j,如果以k为中转距离小则更新 const int MAXV = 510; const int INF = 1000000000; int n,m;//n为顶点数,m为边数 int dis[MAXV][MAXV]; v...
阅读全文
摘要:练习: PAT A1003 Emergency PAT A1030 Travel Plan
阅读全文
摘要:题目练习:PAT A1076 Forwards on Weibo
阅读全文

浙公网安备 33010602011771号