登录
首页 » Visual C++ » Monkey

Monkey

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

  • msminimization
    this is a new alghorithm about tabu search....
    2013-05-26 16:49:11下载
    积分:1
  • huatu
    VC调用MATLAB的简单事例,没有复杂的功能,只适合初学者(A simple example of calling MATLAB VC)
    2011-08-09 15:15:53下载
    积分:1
  • simulation-of-waveguide-mode
    说明:  根据波导的边界条件求取麦克斯韦方程组,对波导当中电磁波传播的模式进行仿真(strike the Maxwell s equations According to the boundary conditions of media ,simulate electromagnetic wave propagation of waveguide modes )
    2011-03-07 13:43:41下载
    积分:1
  • AM_ana
    说明:  个人做的AM调制数字解调simulink仿真模块,大家多交流(The AM modulation personal digital demodulation simulink simulation module, we more exchanges)
    2009-08-04 09:01:54下载
    积分:1
  • beam
    matlab 中梁的弯矩 剪力 变形 轴力图形 以及源程序(matlab in Beams Shear deformation and axial force graphic source)
    2013-11-11 13:42:29下载
    积分:1
  • the-four-step-ranger-r-k
    四阶经典R-K方法的Matlab程序和newton的matlab程序的实现(Matlab program to achieve the classic fourth-order RK method and newton s matlab program)
    2015-03-21 09:52:38下载
    积分:1
  • MATLAB-function
    最新的matlab命令集合。搜集了网上的大部分(The latest collection of matlab commands. Collected most of the Internet)
    2011-09-26 13:08:31下载
    积分:1
  • CDContorl
    控制光驱的使用,很不错的一份源代码,与大家一起分享(err)
    2007-09-20 10:49:39下载
    积分:1
  • 1
    说明:  遗传算法,编写遗传算法程序,求解10城市的旅行商问题。(Genetic algorithm, genetic algorithm coded, 10-city traveling salesman problem to solve.)
    2011-05-16 17:49:30下载
    积分:1
  • IFFT64
    IFFT 基于matlab实现,可用于OFDM前导训练序列的生成(IFFT OFDM preamble training sequence can be used to generate based on matlab implementation)
    2013-03-26 19:41:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载