登录
首页 » Visual C++ » Monkey

Monkey

于 2009-12-28 发布 文件大小:1KB
0 271
下载积分: 1 下载次数: 5

代码说明:

  山上有m只猴子要选大王,选举办法如下:所有猴子从1到m进行编号并围坐一圈,从第一号开始按顺序1,2,...n继续报数,凡是报n号的猴子都退出到圈外,照此循环报数,直到圈内只剩下一只猴子时,这只猴子就是大王.输出大王的编号。 (Mountains have m of the monkeys to elect king, method of election are as follows: All monkeys are numbered from 1 to m, and sitting around a circle, to begin from the first order 1,2, ... n continue to report the number of those who reported that n No. The monkeys are out to outsiders the basis of this report the number of cycles until the circle only one monkey, the monkey is king. Output King number.)

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

发表评论

0 个回复

  • 011fir16_matlab
    给出了通过MATLAB设计FIR滤波器的程序,只需要输入滤波器类型和参数就能设计出特定滤波器,并产生DSP需要的数据,很有意义。(MATLAB is given through the FIR filter design process, only the type and parameters of input filter will be able to design a specific filter, and DSP have the data needed and meaningful.)
    2009-06-15 10:31:19下载
    积分:1
  • qichelilun
    本程序为汽车理论第五版课后习题程序,采用matlab编程,经测试均为正确结果(The procedures for the car the theoretical fifth edition of the after-school exercise program, using matlab programming, has been tested and are the correct results)
    2013-05-07 13:35:00下载
    积分:1
  • heapmgrbase
    heapmgrbase program for dynamic memory
    2013-12-06 17:59:26下载
    积分:1
  • sift
    用matlab和VC实现图像匹配拼接的sift算法(VC implementation using matlab and the image matching algorithm sift Splicing)
    2009-03-23 10:46:38下载
    积分:1
  • eetop.cn_LTE-simulation-C
    LTE上行链路仿真C代码,包含CRC添加、信道编码、信号调制、基带信号等~(LTE simulation for the uplink of C code, including CRC added, channel coding, modulation, baseband signal. )
    2013-11-25 14:50:32下载
    积分:1
  • gomory
    割平面在MATLAB里的程序,很好用,希望和大家分享(Cutting plane in the MATLAB program, useful, and would like to share)
    2012-05-30 00:02:56下载
    积分:1
  • 737434a8c47e4bbbb27d8e445b921785
    换热站计算及选型,非常有用,里面用的XLS编写的,直接用就可以~~~~~(Calculation and selection of heat transfer stations, very useful, which use XLS written directly on it ~ ~ ~ ~ ~)
    2014-01-21 09:42:04下载
    积分:1
  • t
    说明:  文章编辑系统,输入一页文字,程序可以统计出文字、数字、空格的个数。 静态存储一页文章,每行最多不超过80个字符,共N行 (Article editing system, input a word, the program can be worked out, words, numbers, the number of spaces. Static storage an article, each line no more than 80 characters, a total of N rows)
    2010-01-25 23:00:40下载
    积分:1
  • PSO
    梯度下降法是最早最简单,也是最为常用的最优化方法。梯度下降法实现简单,当目标函数是凸函数时,梯度下降法的解是全局解。一般情况下,其解不保证是全局最优解,梯度下降法的速度也未必是最快的。梯度下降法的优化思想是用当前位置负梯度方向作为搜索方向,因为该方向为当前位置的最快下降方向,所以也被称为是”最速下降法“。最速下降法越接近目标值,步长越小,前进越慢。(The gradient descent method is the earliest and most simple and most commonly used optimization method. The gradient descent method is simple to realize. When the objective function is a convex function, the solution of the gradient descent method is a global solution. In general, the solution is not guaranteed to be the global optimal solution, and the gradient descent method is not necessarily the fastest. The optimization idea of gradient descent method is to use the current position negative gradient direction as the search direction, because the direction is the fastest descending direction of the current position, so it is also called the steepest descent method. The faster the slowest descent approach is closer to the target, the smaller the step, the slower the progress.)
    2018-01-29 21:44:10下载
    积分:1
  • matlab
    RLS , channel equalizer
    2011-09-09 00:26:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载