登录
首页 » Visual C++ » Monkey

Monkey

于 2009-12-28 发布 文件大小:1KB
0 189
下载积分: 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 个回复

  • matlab_fem
    Introduction to programming finite element with matlab
    2012-12-01 04:49:46下载
    积分:1
  • basicforMusic
    music算法运用于波达方向的测定,波达方向的测定先现广泛用于雷达等应用中.music算法是个很成熟的算法,如今学者们就计算量,精确度上的问题又提出了很多的改进算法.如下为 基本算法,可正确运行(music DOA algorithm applied to the determination of DOA in the first radar is widely used in such applications. music algorithm is a very mature algorithm, Now scholars on the calculation accuracy on the problem makes a lot of improved algorithm. following the basic algorithm, can be correctly operation)
    2007-05-07 16:21:01下载
    积分:1
  • diedaifenxing
    用于Matlab计算迭代计算的,非常典型,还有完整的解释(Iterative calculation for Matlab, very typical, as well as a complete explanation)
    2009-07-04 22:25:14下载
    积分:1
  • HsT2Hlp_Demo
    HsT2Hlp_Demo,中信证券api简单的api示例(HsT2Hlp_Demo, CITIC Securities api api simple example)
    2014-02-13 10:49:59下载
    积分:1
  • VC
    说明:  使用VC++调用Matlab程序,利用自带的Matlab引擎实现数据交换。(Using VC++ calling Matlab program, using the Matlab engine comes with data exchange.)
    2010-12-02 10:15:39下载
    积分:1
  • netlab
    这是包含pca和ppca等诸多源程序的工具箱,希望大家喜欢。(This is the PCA and PPCA includes many source code of the toolbox, I hope everyone likes.)
    2007-11-08 21:04:08下载
    积分:1
  • 1
    说明:  比例导引法的MATLAB,程序,希望大家多侃侃(matlab)
    2009-08-12 14:24:56下载
    积分:1
  • Process-Control
    多火电厂主汽温度控制系统的过程控制进行仿真(Of the thermal power plant main steam temperature control system process control simulation )
    2011-07-09 21:57:08下载
    积分:1
  • sysidjob4
    该程序涉及了M序列的生成,以及相关辨识法的基本实现和概念。(The procedure involves the M-sequence generation, as well as the basic realization of the identification method and concepts.)
    2012-06-09 17:16:34下载
    积分:1
  • 3D
    说明:  自动生成三维的多孔介质,对多孔介质研究的学者有用(Automatic generation of three-dimensional porous media, porous media studies scholars Useful)
    2015-10-01 13:54:48下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载