登录
首页 » 其他项目 » 解决以下问题:

解决以下问题:

于 2022-12-06 发布 文件大小:879.00 B
0 277
下载积分: 2 下载次数: 1

代码说明:

For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 32768 KB One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free. However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.

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

发表评论

0 个回复

  • 实际对象的数学模型并不清楚,难以控制。
    针对实际对象数学模型不明确而难以控制的问题,采用人工免疫网络的离散模 型与学习算法,将人工免疫系统与神经网络结构的优势相结合,提出了一种基于人工免疫 网络的模式识别算法,构造了对象识别的人工免疫网络模型.该算法综合了网络节点的定 位与参数调整以及对基函数的平滑因子实施调谐等功能,有效地解决了径向基函数 (RBF)神经网络模式识别的两个阶段任务,使模式识别的精度有较大的改进.采用两个不 同对象函数进行的仿真试验表明,该算法具有快速收敛性与较高的准确性. -Mathematical model for the actual object is not clear and difficult to control the problem, the use of artificial immune network model and the discrete learning algorithm, artificial immune systems and neural networks combine the advantages of structure, an artificial immune network based on pattern recognition algorithms, Construction of the object identified by artificial immune network model. the algorithm is a combination of network nodes to adjust the position and parameters as well as the basis function implementation of the smoothing factor, tuning and other functions, to effectively solve the Radial Basis Function (RBF) neural network pattern recognition of two phase of the task, so that the accuracy of pattern recognition have greater impro
    2022-05-19 12:01:11下载
    积分:1
  • draw camvas
    draw camvas
    2022-08-12 15:03:22下载
    积分:1
  • 让我们自己动手做屏保
    让我们自己动手做屏保-our own hands screensaver
    2023-08-15 16:40:02下载
    积分:1
  • DS-2CD866MF-EC SDK开发包及DEMO及相关开发说明-DS-2CD866MF-EC SDK DEMO
    2022-09-09 07:40:03下载
    积分:1
  • backtracking algorithms circuit board problems
    回溯算法中的电路板问题-backtracking algorithms circuit board problems
    2023-06-10 11:35:04下载
    积分:1
  • registy funtion in vb
    registy funtion in vb
    2022-11-11 12:25:03下载
    积分:1
  • 信号转换可以讲非方波信号转换为方波 很好用的啊可以测频率...
    信号转换可以讲非方波信号转换为方波 很好用的啊可以测频率-swif
    2022-07-14 21:13:59下载
    积分:1
  • 一个反编译VB程序的应用程序,前已可以解析下列控件的大部分属性,并进行编辑,中包括字体的修改,背景颜色的修改,图片的保存和替换等。 PictureBox、...
    一个反编译VB程序的应用程序,目前已可以解析下列控件的大部分属性,并进行编辑,其中包括字体的修改,背景颜色的修改,图片的保存和替换等。 PictureBox、 Label、 TextBox、 Frame、 CommandButton、 CheckBox、 OptionButton、 Form、 Menu、 MDIForm、 Image、 Data、 UserControl、 PropertyPage -Decompile a VB application process has been able to resolve most of the following attributes control and editing, including changes to the font, background color changes, photo preservation and replacement. PictureBox, Label, TextBox, Frame, CommandButton, CheckBox, OptionButton, Form, Menu, MDIForm, Image, Data, UserControl, PropertyPage
    2022-07-24 07:15:58下载
    积分:1
  • 使用cupl语言编写的20
    使用cupl语言编写的20-5编码键盘,无需键盘扫描 比矩阵键盘更方便,-cupl use of the language 20-5 coding keyboard, without the keyboard scan matrix keyboard is more convenient.
    2023-02-08 11:45:04下载
    积分:1
  • using DirectDraw 2D casual game developers need to standardize the time to call...
    在使用DirectDraw进行二维休闲游戏开发的时候 需要规范地调用DirectDraw接口,这个是微软早期版本里提供的封装很有用-using DirectDraw 2D casual game developers need to standardize the time to call DirectDraw interface, the early version of Microsoft"s package providing useful
    2022-07-10 01:07:36下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载