文件名称:airroute
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:55.96kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
航线选择问题
问题描述
某个国家有 N 个城市,分别编号为 1 到 N。旅行者通过该国的机场售票处了解到 N
个城市之间的所有航班,每个航班都有两个属性,航程和费用,航线是双向的。
旅行者的出发点是城市 1 ,他的目的地是城市 N ,由于飞机票的价格不菲,而旅行
者携带的现金又是十分有限,而他希望使用有限的现金,尽快到达目的地。
编程任务
帮助旅行者计算出,在他所携带现金的范围内,从出发点到目的地的最短距离-Route choice problems described a country N cities, respectively, numbered from 1 to N. Ticket office learned that all flights between the N cities traveled through the country' s airports, each flight has two attributes, range and cost, the route is two-way. Traveler' s point of departure city, destination city N air tickets are expensive, and travelers carrying cash is very limited, and he hopes to use the limited cash to reach their destination as soon as possible. The programming task Traveller calculated, the shortest distance from the departure point to the destination, in the range of his carrying cash
问题描述
某个国家有 N 个城市,分别编号为 1 到 N。旅行者通过该国的机场售票处了解到 N
个城市之间的所有航班,每个航班都有两个属性,航程和费用,航线是双向的。
旅行者的出发点是城市 1 ,他的目的地是城市 N ,由于飞机票的价格不菲,而旅行
者携带的现金又是十分有限,而他希望使用有限的现金,尽快到达目的地。
编程任务
帮助旅行者计算出,在他所携带现金的范围内,从出发点到目的地的最短距离-Route choice problems described a country N cities, respectively, numbered from 1 to N. Ticket office learned that all flights between the N cities traveled through the country' s airports, each flight has two attributes, range and cost, the route is two-way. Traveler' s point of departure city, destination city N air tickets are expensive, and travelers carrying cash is very limited, and he hopes to use the limited cash to reach their destination as soon as possible. The programming task Traveller calculated, the shortest distance from the departure point to the destination, in the range of his carrying cash
(系统自动生成,下载前可以参看下载内容)
下载文件列表
airroute.cpp
airroute航线选择问题.pdf
airroute航线选择问题.pdf
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.