登录
首页 » Visual C++ » Monkey

Monkey

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

  • moxingising
    对ising模型的模拟,这是二维的情况,对于学物理的人很重要的。(Ising model for the simulation, which is two-dimensional case, for physics, it is very important.)
    2013-12-28 17:33:42下载
    积分:1
  • __Least_Squares_Support
    第5个:matlab 和C++联合用于SVM,另外一种风格的(the 5 file: matlab and c++ together for SVM)
    2011-12-28 09:52:35下载
    积分:1
  • qxnh00005
    用c++编的matlab曲线拟合程序,都是老师布置的数值分析作业!希望和大家交流.谢谢网站提供这个平台!(c addendum to the use of curve fitting procedures Matlab, Layout of the teachers are numerical analysis operations. We hope and exchanges. Thank you for providing this platform!)
    2006-10-15 20:02:35下载
    积分:1
  • lagrange
    用拉格朗日n次插值方法 对一系列离散点进行插值(N times with Lagrange interpolation method interpolates a series of discrete points)
    2015-01-25 20:02:44下载
    积分:1
  • matlab-wavelet
    基于小波变换的多尺度图像边缘检测matlab源代码(Based on wavelet transform multi-scale image edge detection matlab source code)
    2015-04-10 16:38:42下载
    积分:1
  • Matlab-JTD
    最近找的求解方程的程序,可以借鉴下,挺好的(Solving equations to find the most recent program, you can learn, the very good)
    2011-09-28 08:40:50下载
    积分:1
  • com
    MSP430X44X系列的串口通讯操作完整程序(COM USED IN MSP430)
    2009-07-17 17:22:41下载
    积分:1
  • asfmodel_definitive_resonant
    电子工程转换器模块例子,在matlab simulink 7.5中运行(Converter modle matlab simulink )
    2009-06-22 20:57:55下载
    积分:1
  • pCopiesanalber
    程序源码是对心电信号进行R 峰检测,等电位位线的检测等,能快速高效完成计算(The program source is the ECG R-peak detection, detection of potential bit line can be done quickly and efficiently calculate the)
    2012-08-14 09:58:33下载
    积分:1
  • m
    说明:  主成分分析算法,有大量数据,初学者可以根据数据看程序,并且可以出现图像(Principal component analysis algorithm, there is a large amount of data, beginners can look at program according to the data, and can appear the image)
    2014-11-24 14:46:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载