- 博客(1)
- 收藏
- 关注
原创 kuangbin专题六 最小生成树题解
kuangbin专题六 最小生成树 A. A Jungle Roads POJ - 1251(节点编号处理) 模板题,把字符经过 - 'A' + 1 处理为从1开始的节点编号。稠密无向图,用邻接矩阵存,对称地存储最小的距离(以防有重边)。套用prim()模板 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 30; const int
2021-03-02 16:42:28
373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人