登录
首页 » 算法 » C程序小车加油

C程序小车加油

于 2022-02-06 发布 文件大小:1.31 kB
0 71
下载积分: 2 下载次数: 1

代码说明:

一个汽车加满油后可行驶n公里,由起点a到起点b为m公里。汽车出发时加满了油,途中设有k个加油站,d1是第一个加油站距起点的距离,di是第i个加油站距其前一个加油站的距离。设计一个算法,求出加油方案,使得加油次数最少即可到达终点。解决策略  汽车是由起点向终点行驶,现在面对的问题是应该在那个加油站加油,可使旅途过程中加油次数最少。为了解决该问题,我们可以规定在油箱中的油不足以使汽车行驶到下一个加油站的前提下,才加一次加油,如此   

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

发表评论

0 个回复

  • 数控加工仿真
    二维数控加工仿真VC源代码,希望对学习控加工仿真编程的朋友有用。源代码是VC6.0编译的,已经用VS2008从新编译过。欢迎大家下载使用。
    2022-04-15 03:47:49下载
    积分:1
  • 两个整数相除,可以到小数点后无穷位.用的是数组.可以看一下...
    算两个整数相除,可以算到小数点后无穷位.用的是数组.可以看一下-count two integer eliminate, to be counted after the decimal point infinite spaces. Use the array. Can look at the
    2022-08-19 06:02:58下载
    积分:1
  • plot
    数值积--- 复合求积公式对积分问题的求解功能 用复合梯形求积公式和复合抛物线公式,对给定的积分问题进行计算。-plot--- composite numerical quadrature formula to solve the problem of integration functions for composite trapezoidal plot formula and compound parabolic formula, the right to issue integral calculation.
    2022-03-22 06:07:15下载
    积分:1
  • snowball英语词干化
    You can use this site at a number of levels:  - You can look at the stemming algorithm definitions themselves, and use them as templates for coding your own versions of stemmers in the computer language of your choice.  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-15 02:46:05下载
    积分:1
  • mime64是什么:mime64是一rfc1341 MIME base64编码描述为其铺…
    WHAT MIME64 IS: MIME64 is an encoding described in RFC1341 as MIME base64.Its purpose is to encode binary files into ASCII so that they may be passedthrough e-mail gates. In this regard, MIME64 is similar to UUENCODE.Although most binaries these days are transmitted using UUENCODE, Ihave seen a few using MIME64, and I have had requests from friends thatI decode MIME64 files that have fallen into their hands. As long assome MIME64 continues to exist, a package such as this one is usefulto have.
    2022-03-22 13:30:49下载
    积分:1
  • MATHLIB例子
    MATHLIB例子-MATHLIB example
    2022-04-30 04:03:58下载
    积分:1
  • 科学与工程数值计 1、本书附赠的光盘包含了本书中全部的源代码。使用时只需将相应的目录拷贝到您的硬盘中。 注意 拷贝到硬盘上的源文件的属性如果...
    科学与工程数值计算算法 1、本书附赠的光盘包含了本书中全部的源代码。使用时只需将相应的目录拷贝到您的硬盘中。 注意 拷贝到硬盘上的源文件的属性如果成为只读的,在编译之前应该将它们的属性改为可读写的。 2、光盘各目录中的内容如下所示: 光盘目录 内容说明 SourceChapterN 第N章的所有示例工程源程序 SourceClasses 本书所有算法类的源程序 SourceLib 集成本书所有算法的静态库文件 SourceDll 集成本书所有算法的动态库文件 -Science and Engineering numerical algorithm 1, this book comes with a CD-ROM contains all the book s source code. Simply use the corresponding copy of the directory to your hard drive. Note to copy the source files on your hard disk becomes read-only attribute in the compiler prior to their properties should be changed to read and write. 2, CD-ROM contents of the directory as follows: CD-ROM directory description SourceChapterN the first chapter all the examples of N source project SourceClasses algorithm book all types of source book SourceLib integrated all of the static algorithm library file SourceDll integrated all book algorithm for dynamic library files
    2023-08-03 22:30:03下载
    积分:1
  • 拟合小程序,可以看看!
    拟合小程序,可以看看!-small fitting procedures, we can!
    2022-06-13 12:45:59下载
    积分:1
  • 一些比较经典的数学问题,包括1万…
    一些比较经典的数学问题源程序 包括百鸡百钱,灯塔问题,桃子猴问题-some of the more classic source of mathematical problems, including 100 hundred chickens money, Lighthouse, peach monkey issue
    2022-07-01 14:18:57下载
    积分:1
  • 随机有限元分析的经典程序,分析结构可靠度等方面应用
    随机有限元分析的经典程序,分析结构可靠度等方面应用-Stochastic finite element analysis of the classical procedures, analysis of structural reliability applications, etc.
    2022-03-04 06:04:44下载
    积分:1
  • 696518资源总数
  • 104384会员总数
  • 26今日下载