登录
首页 » Visual C++ » Monkey

Monkey

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

  • MATLABmusic1
    Matlab程序代码 音乐代码 1 《卡农》(MATLAB music code1)
    2012-08-11 15:49:31下载
    积分:1
  • csaolei
    C language is currently the more popular high-level computer programming language, because of its simplicity, ease of use and powerful features have been widely favored by programmers. It is suitable as a system description language, can also be used to prepare the system software, application software can be written since
    2014-01-17 15:11:15下载
    积分:1
  • MythManMonth
    人月神话,又是一本软件工程领域的经典书籍,必读。。。。(MythManMonth.rarMythManMonth.rar)
    2009-12-18 11:22:29下载
    积分:1
  • 5435
    matlab数值计算,入门基础,绝对好用(matlab numerical calculation, entry-foundation, absolutely easy to use)
    2013-03-25 21:51:00下载
    积分:1
  • StevenStablePoi
    用多点法求取方程的根,仅供参考仅供参考仅供参考仅供参考(Equation with multi-point method to strike root, for reference purposes only for reference purposes only)
    2011-09-27 10:43:05下载
    积分:1
  • jiqirenpaibao
    讲述了基于matlab的排爆机器人的控制与仿真,具有较好效果(About the control and simulation matlab-based EOD robot, with good results)
    2014-09-19 20:29:30下载
    积分:1
  • FIR
    数字滤波器的MATLAB实现,很实用,非常好,欢迎下载不用上传就能下载(FIR)
    2010-10-21 12:04:48下载
    积分:1
  • waver
    通过matlab编写代码演奏的卡农,用的基准音,没有加入波形修饰所以音色比较单一(matlab matlab playing playing Khanom Khanom Khanom matlab played)
    2013-11-03 20:55:00下载
    积分:1
  • Note8_Dcm_debug_note
    汽车开放式架构Autosar 中的诊断通信模块的调试笔记。(The doc is the debug note for the Dcm moude in the AUTOSAR .)
    2014-08-12 17:30:43下载
    积分:1
  • pca
    集成了C代码和MATLAB的主成分分析代码,可以用这两种方法解决求取特征值和特征向量。(C code and MATLAB integrates principal component analysis code, you can use two methods to solve strike eigenvalues ​ ​ and eigenvectors.)
    2013-09-10 19:45:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载