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

  • in Visual C Compiler 6.0 WinXp adopted under the category achieved redeem inheri...
    在Visual C++6.0 WinXp下编译通过采用类来实现,从CString继承而来数据运算的结果保存在CString类中理论上可对任意长的数据进行相加在Release目录下有可执行文件,将*.txt拖放到longadd.exe上即可,*.txt为数据文件-in Visual C Compiler 6.0 WinXp adopted under the category achieved redeem inherited from the Operational data stored in the category redeem theoretically can arbitrarily long data together in the Release directory is executable file to*. txt longadd.exe to drag on top,* . txt file data
    2022-06-27 04:11:42下载
    积分:1
  • NSGAII Matlab实现源代码
    针对多目标遗传算法的Matlab代码,本代码是在原论文的基础上编写的关于此方法的,并尝试在编程中使用从简单记数法。
    2022-03-15 06:18:16下载
    积分:1
  • 源包括一个递归模板版本和一个非
    The source includes a recursive template version and a non-recursive template version
    2022-03-18 21:30:09下载
    积分:1
  • poj3352给一个图,求出需要加最少的边使去掉任一条边,图都连通.割点的应用...
    poj3352给一个图,求出需要加最少的边使去掉任一条边,图都连通.割点的应用-poj3352 to a map, obtained at least the need to remove the edges so that any one side, map are connected. cut-point application
    2023-07-27 11:35:03下载
    积分:1
  • 一个对称三对角矩阵特征值计
    computes the eigenvalues of a symmetric tridiagonal * matrix T. The user may ask for all eigenvalues, all eigenvalues in the half-open interval (VL, VU], or the IL-th through IU-th eigenvalues.-computes the eigenvalues of a symmetric tr idiagonal* matrix T. The user may ask for all eig envalues. all eigenvalues in the half-open interval (VL. VU], or the IL-th through IU-th eigenvalues.
    2022-03-19 01:45:05下载
    积分:1
  • ssc-i2s-project-at91sam3u-ek-gnu
    SAM3U4E 可编程时钟输出用于生成 WM8731 主时钟 (MCLK)。的 SAM3U4E ODT (上模终止) 功能可保证无此时钟线上的信号完整性 需要外部的分立元件。 WM8731 pin 21 模式被推倒,默认情况下 ;这配置该设备,作为一种 TWI 装置内部 注册访问。 公务员事务局 Pin15 是把拉出来,而将其 TWI 地址设置为 33 [0x0011011]。 WM8731 数字接口在 SAM3U4E 同步串行控制器上的奴隶模式下工作 (SSC) 接口,这意味着编解码器的数字音频位 ADC/DAC 左/右控制和时钟是 要生成的 SAM3U4E。
    2023-08-05 19:35:04下载
    积分:1
  • 购物车代码
    本程序以c++为基础进行开发,具有基本网络购物车的功能,能够进行添加,删除以及修改商品等等内容,用到了数据结构的知识
    2022-03-03 23:58:22下载
    积分:1
  • 这是一个简单的C程序,使用AVR单片机Atmega8515键盘
    this is simple c program for keypad using AVR microcontroller ATmega8535
    2023-07-24 21:40:02下载
    积分:1
  • MS C 的循环冗余校验的子程序
    MS C 的循环冗余校验的子程序-MS C Cyclic Redundancy Check the subroutine
    2022-03-20 04:09:07下载
    积分:1
  • 二次指数平滑预测和三次指数平滑预测是普遍的预测方,应用很广,本代码还包含其平滑系数的确定...
    二次指数平滑预测法和三次指数平滑预测法是普遍的预测方法,应用很广,本代码还包含其平滑系数的确定-quadratic exponential smoothing prediction and three exponential smoothing prediction is a common forecasting methods, a wide application, the code also includes its smooth determine the coefficient
    2022-03-23 11:49:19下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载