CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称:NewCountrySide

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-03-23
  • 文件大小:
    11.93kb
  • 已下载:
    4次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

在新农村建设中有2个重要的任务就是:乡村公路建设和乡村医院的完善。但是农村公路线长面广,分散在各个地区的各个角落,为了节省资金,设计部门想用最经济的方案完成乡村公路建设和乡村医院的设置。要求:

(1)求使用最少资金使所有乡村都能通路的方案情况(要求输出所有方案,每个方案修建的公路和公路的总长)。

(2)假设乡村之间能建的公路都已建成,现在想造一个乡村医院,问这个医院造在哪个村庄,使所有村庄到该医院的总路程最短。

(3)假设乡村之间能建的公路都已建成,现在要提供一个问路系统,输入两个乡村A和B,系统能显示从A到B的最短通路长度和该通路的路径。

[输入]

从文件输入。

输入的第一行为一个正整数N(2<=N<=100),表示乡村的个数。

第二行到N+1行为乡村名字。

第N+2行为一个正整数M(N<=M<=N(N+1)/2),表示可以修建的乡村公路数。

接下来M行,每行有三个值:X Y Z,分别表示一条公路连接的两个村庄和公路的长度。-There are two important tasks that the new rural construction: rural road construction and improvement of rural hospitals. But rural highways wide long face, scattered in every corner of the various regions, in order to save money, the design department to use the most economical solution to complete the construction of rural roads and rural hospital settings. Requirements: (1) requires the use of a minimum funding so that all can access the programs of rural (required output of all programs, each program to build roads and highways total length). (2) the assumption can be built between the village road have been built, and now want to build a rural hospital, ask the hospital in which the village made so that all the villages to the hospital shortest total distance. (3) Assuming that the road can be built between the villages have been built, and now want to ask the way to provide a system, enter two villages A and B, the system can display the path length of the shortest path A to B,
(系统自动生成,下载前可以参看下载内容)

下载文件列表

新农村/
新农村/adj_matrix_undir_network.h
新农村/assistance.h
新农村/Floyd.h
新农村/prim.h
新农村/test (1).txt
新农村/test_prim.cpp
测试数据 新农村/
测试数据 新农村/1.in
测试数据 新农村/10.in
测试数据 新农村/2.in
测试数据 新农村/3.in
测试数据 新农村/4.in
测试数据 新农村/5.in
测试数据 新农村/6.in
测试数据 新农村/7.in
测试数据 新农村/8.in
测试数据 新农村/9.in
测试数据 新农村/说明.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com