登录
首页 » 算法 » 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 199
下载积分: 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 个回复

  • 用C语言来实现的。求解线性方程组的迭代,是一种简单的迭代法,可不如 Gauss...
    用C语言来实现的。求解线性方程组的迭代,是一种简单的迭代法,可不如 Gauss-Seidel迭代法收敛速度快。-Use c language to make a Jacobi iterative arithmetic which could solve the linear equation group, but it s may be more slower than the Gauss-Seidel iterative arithmetic.
    2022-10-31 15:55:02下载
    积分:1
  • 计算方法中的方法
    计算方法中的方法-method of calculation methods
    2022-12-20 20:50:08下载
    积分:1
  • 该矩阵类库源代码已通过编译,希望对大家有帮助!
    该矩阵类库源代码已通过编译,希望对大家有帮助!-The matrix class library source code has passed through the compiler, and they hope to help everyone!
    2022-03-13 10:57:59下载
    积分:1
  • 和声搜索算法
    本算法描述了经典的和声搜索算法,以C语言实现,代码简单易懂,欢迎大家讨论交流,谢谢!!!和声搜索(Harmony Search, HS)算法是2001年Geem Z W 等人提出的一种新颖的智能优化算法。类似于遗传算法对生物进化的模仿、模拟退火算法对物理退火的模拟以及粒子群优化算法对鸟群的模仿等,和声算法模拟了音乐演奏的原理。  
    2022-04-19 21:04:38下载
    积分:1
  • The section of least squares procedures, very good, and hope that we share
    最小二乘法的一段程序,很好用,希望大家共享-The section of least squares procedures, very good, and hope that we share
    2022-12-26 20:45:02下载
    积分:1
  • 八皇后问题
    八皇后问题
    2022-02-04 04:21:05下载
    积分:1
  • 感知器的demo,批处理模式识别作业type.typically有用
    感知机算法演示程序,批处理。用于模式识别课程作业-perceptron demo,batch type.typically useful to Pattern Recognition homework
    2023-04-16 14:05:04下载
    积分:1
  • 蚁群算法
    运用蚁群算法对函数进行求解 得到最优解,运用蚁群算法对函数进行求解 得到最优解
    2022-06-16 18:09:17下载
    积分:1
  • opencv教程
    ========================================================================     控制台应用程序:opencv 项目概述 ======================================================================== 应用程序向导已为您创建了此 opencv 应用程序。 本文件概要介绍组成 opencv 应用程序的 的每个文件的内容。 opencv.vcproj     这是使用应用程序向导生成的 VC++ 项目的主项目文件,     其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 opencv.cpp     这是主应用程序源文件。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h, StdAfx.cpp     这些文件用于生成名为 opencv.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 ///////////////////////////////////////////////////////////////////////////// 其他注释: 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
    2023-02-22 02:05:04下载
    积分:1
  • android first home screen
    android first home screen
    2022-03-01 22:36:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载