摘要: HDU1162,单纯地求最小生成树。此处用prim算法+邻接阵。代码:#include#includeusingnamespacestd;constintMAXV=105;constdoubleinf=1000000000;typedefdoubleelem_t;structpoint{doublex,y;}point[MAXV];doubl... 阅读全文
posted @ 2011-08-18 01:42 cchun 阅读(167) 评论(0) 推荐(0)