文件名称:agrinet
介绍说明--下载内容均来自于网络,请自行研究使用
USACO agrinet 题解,农民约翰被选为他们镇的镇长!他其中一个竞选承诺就是在镇上建立起互联网,并连接到所有的农场。当然,他需要你的帮助。 约翰已经给他的农场安排了一条高速的网络线路,他想把这条线路共享给其他农场。为了使花费最少,他想铺设最短的光纤去连接所有的农场。 你将得到一份各农场之间连接费用的列表,你必须找出能连接所有农场并所用光纤最短的方案。 每两个农场间的距离不会超过100000 -USACO agrinet problem solution, Farmer John, was elected mayor of their town! One of his campaign promises in the town to establish the Internet and connect to all farms. Of course, he needs your help. To his farm, John has arranged a high-speed network line, he wants to lines shared with other farms. In order to spend at least, he thought that the laying of the shortest fiber to connect all the farm. You will get the connection costs between each farm is a list, you must find the program can connect all the farms and the shortest optical fiber. The distance between the two farms will not be more than 100,000
(系统自动生成,下载前可以参看下载内容)
下载文件列表
agrinet.cpp