-
可以移动的石子合并
资源描述
11079 可以移动的石子合并(必做)
时间限制:1000MS 内存限制:1000K
提交次数:0 通过次数:0
题型: 编程题 语言: G++;GCC;VC;JAVA
Description
有n堆石子形成一行(a1,a2,…,an,ai为第i堆石子个数),现要将石子合并成一堆,规定每次可
选择至少2堆最多k堆移出然后合并,每次合并的分值为新堆的石子数。
若干次合并后,石子最后肯定被合并为一堆,得分为每次合并的分值之和。
现在求解将这n堆石子合并成一堆的最低得分和最高得分。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
- 2022-10-07 16:35:03下载
- 积分:1
-
经典关联分析算法apriori java版
经典关联分析算法apriori java版。可解决关联分析问题,比如分析超市购物关联关系,产品交叉销售可能性,客户价值提升等
- 2022-01-24 15:00:25下载
- 积分:1
-
此程序为奥科AVR开发板的USB实验程序
此程序为奥科AVR开发板的USB实验程序-This procedure for ocote AVR development board
- 2022-05-26 22:39:34下载
- 积分:1
-
换热器更简单的代码
应用程序的简单算法 (patankar) 到 2d 换热器 ;带翼梢小翼 ; 圆柱通道流的目的就是为了计算热量和速度 ; 这种算法将允许您更好地理解如何更简单的算法工作和远景 cfd 应用一个良好实践。
- 2022-03-12 05:59:45下载
- 积分:1
-
The use of C++ Realize the Graham scan method (for solving convex hull problems)...
使用C++实现的Graham扫描法(求解凸包问题),可设置生成随机点的个数、样式,同时支持设置显示范围、显示算法处理时间及使用文件导入导出点等功能。(文件格式为,头四个字节是点的个数,以后分别是各个点的x坐标和y坐标,每个数值均占4字节)。-The use of C++ Realize the Graham scan method (for solving convex hull problems), can be set to generate a random number of points, patterns, and at the same time to support the set display range, display algorithm processing time and the use of document features such as import and export points. (File format for the first four bytes is the number of points, after all points are x coordinates and y coordinates, each account for 4-byte value).
- 2022-02-04 23:48:30下载
- 积分:1
-
用幂法与反幂法求矩阵的最大特征值及最小特征值
用幂法与反幂法求矩阵的最大特征值及最小特征值-with power law with the anti-power method for matrix eigenvalue of the largest and the smallest eigenvalue
- 2022-03-15 14:11:29下载
- 积分:1
-
用c++实现的约瑟夫环
用c++实现的约瑟夫环-achieved with c Josephus
- 2022-03-17 09:51:53下载
- 积分:1
-
看论坛上有个要钱的关于数学运算表达式的东西,之前写过一个关于数学表达式的单元,现免费发给大家了,当然因为只是临时用才写的,有些粗糙,请原谅。...
看论坛上有个要钱的关于数学运算表达式的东西,之前写过一个关于数学表达式的单元,现免费发给大家了,当然因为只是临时用才写的,有些粗糙,请原谅。-Have a look forum money on things mathematical expressions, written before the mathematical expression on the cell, is distributed free to the U.S., of course, because it is only a temporary use only written, some rough, please forgive me.
- 2022-01-30 19:04:27下载
- 积分:1
-
用链表计算任意大小数的阶乘
用链表计算任意大小数的阶乘-calculated using the number of arbitrary size factorial
- 2022-04-08 19:11:01下载
- 积分:1
-
本文通过给定的训练模式为例来推导bp网络学习的算法,并用(语言编程实现,运行程序给出学习误差曲线,最后指出实际应用中BP网络学习存
在的缺点并提出几点改进方...
本文通过给定的训练模式为例来推导bp网络学习的算法,并用(语言编程实现,运行程序给出学习误差曲线,最后指出实际应用中BP网络学习存
在的缺点并提出几点改进方案。
-In this paper, given as an example to the training model is derived bp network learning algorithm, and use (programming language, run the program gives error learning curve, and finally pointed out that the practical application of BP network learning shortcomings and to make a few points to improve the program.
- 2022-05-24 18:37:02下载
- 积分:1