登录
首页 » Visual C++ » Monkey

Monkey

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

  • MATLABEngClass
    说明:  VS中开发的一个C与matlab混合编程的小程序,该类可以使用到其他的MFC程序中去。 但是注意,使用时,要把matlab所在的本地文件夹中的extern中的lib和include添加到VS的工程属性的lib和include路径中去。且要添加四个lib文件。(VS in the development of a mixed C and matlab programming small programs, the class can use the program to other MFC to. Note, however, when used, should matlab local folder where the extern in the lib and include added to the VS project properties go to lib and include paths. And to add four lib.)
    2021-03-01 18:49:34下载
    积分:1
  • vcmatlab
    本程序是使用VC编写,在VC中调用MATLAB,由于MATLAB编写算法功能强大,所以与VC结合使用比较方便。(The program is written using the VC in the VC call MATLAB, MATLAB write algorithms as powerful, it is convenient in combination with the VC.)
    2010-05-08 21:12:30下载
    积分:1
  • myhuf
    对文本文件进行huffman编码,并显示huffman树(to the text document for Huffman coding, and that Huffman tree)
    2005-02-17 10:45:00下载
    积分:1
  • tgff-3.5
    task graph generator: task graph for free version 3.5
    2020-12-21 09:29:08下载
    积分:1
  • shixianchuankou
    用Visual Basic实现串行通信及其在直流调速系统中的应用.pdf(with Visual Basic and its serial communication system DC converter applications. Pdf)
    2006-06-02 15:26:42下载
    积分:1
  • CJLibrary-608
    Visual Studio 2008 下可以编译通过的CJLibary.(CJLibrary version 6.08c with Visual Studio 2008 project.)
    2013-11-14 16:57:11下载
    积分:1
  • att
    奇异吸引子,混沌吸引子,复杂系统理论,画法代码。(Strange attractor, chaotic attractor, complex systems theory, painting code.)
    2013-12-17 13:00:27下载
    积分:1
  • Matlabsimulinkcodes
    基于Matlab simulink的系统仿真设计及应用的函数文件代码(Matlab Simulink-based simulation system design and application code in the function)
    2007-05-21 10:43:48下载
    积分:1
  • cwndExtra
    如何设置窗口的额外字节等内容,setwindowlong,getwindowlong(How to set the window extra bytes, etc.)
    2013-12-17 12:47:21下载
    积分:1
  • -FDTD-
    集总元件的多网格FDTD模型及其在混合电路中的应用(Multi-Grid FDTD model and its application in the mixed lumped circuit elements)
    2013-12-04 19:26:32下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载