登录
首页 » C++ » stock

stock

于 2007-12-25 发布 文件大小:36KB
0 127
下载积分: 1 下载次数: 4

代码说明:

  在一个圆形操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的2 堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算法,计算出将n堆石子合并成一堆的最小得分和最大得分。 (Playground in a circle around the stones are placed n heap. Stone is to have the order to merge into a pile. Provisions can only choose 2 adjacent stones piled into a heap of new and new pile of stones a few in mind for its combined score. Try to design an algorithm to calculate the n heap into a pile of stones the minimum scores and maximum scores.)

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

发表评论

0 个回复

  • sk_buff
    sk_buff结构体,网络数据包传送,在内核中sk_buff表示一个网络数据包,它是一个双向链表,而链表头就是sk_buff_head,(sk_buff structure, network packet transmission, the kernel sk_buff represents a network packet, which is a doubly linked list, and the list head is sk_buff_head,)
    2013-11-23 22:28:20下载
    积分:1
  • DebugHuffmanTree
    哈夫曼树,即通过哈夫曼方法生成最小权值数的树,(Huffman tree, that is generated by the Huffman method the number of minimum weight tree)
    2011-12-17 16:43:50下载
    积分:1
  • Hoffman codec of the source, can be used to achieve efficient codec Hoffman Note...
    这是一个霍夫曼编码解码的源程序,可以用它高效实现霍夫曼解码编码,注释详细,可读性好.压缩包止包括源程序文件,再vc中运行.-Hoffman codec of the source, can be used to achieve efficient codec Hoffman Notes detailed and readable. Compressed only those source files, then vc run.
    2022-03-04 05:41:03下载
    积分:1
  • 开括号和比括号的匹配,内容,很不错
    开括号和比括号的匹配,数据结构内容,很不错-More than brackets and brackets to open the match, the contents of data structure
    2023-08-24 01:50:03下载
    积分:1
  • 本目录存放的小波编码实现的源程序: 打开ezw2.dsw工作区,编译后可在ezw2ezwdebug中找到编码可执行程序; 在ezw2unezwde...
    本目录存放的小波编码实现的源程序: 打开ezw2.dsw工作区,编译后可在ezw2ezwdebug中找到编码可执行程序; 在ezw2unezwdebug中找到解码可执行程序。-Wavelet realization of the source coding : Open ezw2.dsw work, compiled in ezw2 ezw debug find executable code; In ezw2 unezw debug find decoder executable.
    2022-01-25 19:22:08下载
    积分:1
  • this is solar system in c++ .
    this is solar system in c++ .
    2022-03-14 18:27:30下载
    积分:1
  • 编译原理中在自下而上分析和优先分析方法中使用的Washall算法...
    编译原理中在自下而上分析和优先分析方法中使用的Washall算法-Compilation Principle of priority in the bottom-up analysis and analytical methods used in Washall algorithm
    2022-08-18 08:36:23下载
    积分:1
  • Floyd 算法,创建有向图,无向图,有向网,无向网的算法
    Floyd 算法,创建有向图,无向图,有向网,无向网的算法-Floyd algorithm, create a directed graph, undirected graph, directed networks, undirected networks algorithm
    2022-02-26 22:16:43下载
    积分:1
  • 机器人系统
    简介: Whatis 机器人: 机器人是 mechanicaldevice,有时类似于一个人,是有能力执行晚熟往往是复杂的人工任务,命令或通过预先编程。                项目是关于: 这种机器人在这里我 haveused 蓝牙模块,控制机器人通过 2 博电机在 100 RPM appoxthe 机器人是控制由一部 android 手机应用单片机因此 AT89S52 形式 8051 家族在串行通信 UART 模式交流工作在 9800 bps 沟通与 Bluetoothmodule 蓝牙 moduleused 是 HC-05 在 smd 包装这项作用于 3.3 v 和 serialcommunication 与它相连的任何设备上配置通信速度可以在各种速度通过 AT 命令的功能。  蓝牙模块是修饰语支持配置文件,所以它可以轻松地连接到任何模块或电话。从这个数据可以发送和接收模块的配置文件。家单片机和 RX 引脚是 BT 模块姻亲。  L293D 是 motordriver IC 操作在任何方向需要依赖上逻辑应用于逻辑针脚的电动机。  我已经用来避免机箱包含的 2decks 低用于拟合上部的博汽车底盘总成的成衣 compactsize 机箱用作 batterystack 有顶部板板安装由螺丝固定。
    2022-01-26 06:42:33下载
    积分:1
  • 实验,表达式求值的源码以及实验报告。
    数据结构实验,表达式求值的源码以及实验报告。-Experimental data structure, the source expression is evaluated and experimental report.
    2022-08-06 20:10:16下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载