
最小生成树
文章平均质量分 65
LEO丶warning
我是菜鸟,大家可以建一个csdn的账号,一起交流。真的挺好用的
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu1233---还是畅通工程 最小生成树(水)
某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。原创 2015-05-20 22:47:05 · 479 阅读 · 0 评论 -
hdu1102 Constructing Roads------最小生成树
详细题解在这里:There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if there is a road between A and B, or there exist原创 2015-05-21 19:54:08 · 483 阅读 · 0 评论 -
hdu1162Eddy's picture——最小生成树
最小生成时,比较动脑的,可以尝试自己写一写,这有详解;Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his small room, and he usually puts out his newest pictures to let his friends appreciate. but the resul原创 2015-05-22 21:08:06 · 476 阅读 · 0 评论 -
hdu3371——最小生成数
坑啊,超时加爆栈,WA了好多次,一次一次的试验下终于解决了,挺爽,再看代码真是挺简单,原创 2015-06-03 20:06:13 · 658 阅读 · 0 评论 -
hdu1301——Jungle Roads——最小生成树
简单地最小生成树,一AThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, so the large road network is too expensive to原创 2015-06-03 20:37:25 · 752 阅读 · 0 评论 -
HDU1142——A Walk Through the Forest(spfa+记忆化搜索)
Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to walk home. To make things even nicer, his office is on one side of a forest, and his house is on the other. A原创 2015-07-31 14:24:14 · 539 阅读 · 0 评论 -
HDu1116——Play on Words(并查集+欧拉路径)
Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to open the doors, the puzzle is very important for us. There is a large number of magnetic plat原创 2015-07-22 10:44:14 · 569 阅读 · 0 评论