登录
首页 » 算法 » issue a travel home to travel home to drive a car with the minimum of cost yi us...

issue a travel home to travel home to drive a car with the minimum of cost yi us...

于 2023-09-07 发布 文件大小:885.00 B
0 164
下载积分: 2 下载次数: 1

代码说明:

旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 分子动力学模拟技术的源代码
    2022-03-21 10:57:09下载
    积分:1
  • G729解码器
    G729解码器,用于8K采样的语音处理
    2022-05-20 05:36:20下载
    积分:1
  • Redes Bayesianas
    Prediciendo resultdos de partidos de 足球德尔世界巴西 2014年,con redes y bayesinas 大数据
    2022-10-26 08:10:02下载
    积分:1
  • C + + 中的 Strassen 源代码
    使用 Strassen Algorithm 对乘法方阵。 IDE Visual Studio 2012 的 c + + 项目。
    2022-07-03 06:21:52下载
    积分:1
  • order issued calculation of photonic crystal band structure, good! !
    order发计算光子晶体的能带结构,比较好-order issued calculation of photonic crystal band structure, good! !
    2022-02-07 21:48:31下载
    积分:1
  • 飞思卡尔电磁组程序
    此项目信纸被为了让你启动并运行快速与 MC9S12DG128B 的 CodeWarrior。它是为所选的 CPU 和目标连接设置但是,可以容易地修改。
    2022-06-26 09:06:31下载
    积分:1
  • 用于计G-P关联维;和一些相关参数。并能确定最佳的嵌入维数;不是很成熟;希望各位指正;...
    用于计算G-P关联维;和一些相关参数。并能确定最佳的嵌入维数;不是很成熟;希望各位指正;-G-P used to calculate the correlation dimension and a number of relevant parameters. And to determine the optimal embedding dimension not very mature hope that correction
    2022-03-25 07:55:18下载
    积分:1
  • 改进蚁群求解配送
    有多个配送点,每个配送点必须访问,可以访问多次,起点确定,配送点与配送点之间不完全连接,配送点与配送点之间以时间作为衡量标准。要求从起点出发,尽可能快地访问每一个配送点。
    2023-01-03 03:00:07下载
    积分:1
  • 显示前100个反素数
    应用背景 反素数是指一个将其逆向之后也是一个素数的非回文数。例如:17是一个素数,而71也是一个素数,所以17和71是反素数。编写程序,显示前100个反素数。每行显示10个,并且准确对其,如下所示:   13     17     31     37    71    73    79     97    107    113 149   157    167   179  199   311  337   347    359    389 ... 关键技术 step1: 关于如何判断一个数是素数,就是质数, step2: 关于这个素数的逆反数, step3: 再一次判断这个数是个素数, step4: 将这个数输出, step5: 输出前100个反素数。
    2022-07-04 10:11:11下载
    积分:1
  • 这是硕士生计机软件专业组合数学的一个换位演示,仅供参考。...
    这是硕士生计算机软件专业组合数学的一个换位法算法演示,仅供参考。-This is the master computer software professional combination of a mathematical algorithm law transposition demonstration purposes only.
    2023-08-07 02:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载