登录
首页 » Visual C++ » Monkey

Monkey

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

  • matlabb
    数字语音处理及MATLAB仿真[张雪英][程序源代码](Digital audio processing and MATLAB simulation [ZhangXueYing] [source code])
    2010-12-06 23:02:09下载
    积分:1
  • vcmatlab接口
    一个实现vc与matlab接口的程序,可在vc构建的平台上实现matlab的函数调用(a realization vc Matlab interface with the procedures in vc build on the platform to achieve the function call Matlab)
    2005-03-29 15:43:47下载
    积分:1
  • tms320f28335_eQEP
    another code from the sample code category
    2014-08-27 12:46:48下载
    积分:1
  • Doppler-effect
    文档详细介绍了关于多普勒效应原理及多径效应,并附有matlab仿真(Document details the principles on the Doppler effect and multi-path effects, together with matlab simulation )
    2011-05-23 10:32:52下载
    积分:1
  • ARpredictor
    matlab实现的关于数字信号处理2的一个AR模型的程序,大家可以看一下了啊。。。。。(matlab implementation of digital signal processing on an AR model of 2 procedures, we can look at the ah. . . . .)
    2011-05-11 18:46:11下载
    积分:1
  • _FuzzyPID
    MATLAB算法 自己设计的 希望能帮助你 模糊PID(MATLAB algorithm design their own hope to help you fuzzy PID)
    2015-04-20 21:48:44下载
    积分:1
  • rscore
    数据标准化处理函数,输入待处理矩阵,参数dim默认或取1,对列进行标准化处理,dim取2对行处理(Standardized data processing functions, input matrix to be processed, the default parameters, or to take a dim, standardization of columns, dim to take two pairs of line processing)
    2011-09-28 18:46:32下载
    积分:1
  • Sim
    电机控制系统,02年开始积累,效果好,速度快,PI控制,经典控制,fuzzy PID,自适应控制,速度位置控制等等,欢迎大家参考。(Servo motor control system, in 2002 began to accumulate, effective, fast, PI control, classical control, fuzzy PID, adaptive control, speed position control, etc., we welcome the reference.)
    2013-12-11 14:18:26下载
    积分:1
  • 2005011502_118573_ATM_MFC
    一个模仿ATM提款机的MFC程序,具有ATM的所有功能。(An imitation of the MFC process ATM teller machines, with all the features of ATM.)
    2008-04-19 22:06:55下载
    积分:1
  • MATLAB-NRTL
    用MATLAB求解三元物系的NRTL方程,可以供大家参考使用(Ternary System on MATLAB to solve the NRTL equation, for your use and reference)
    2013-04-25 16:41:50下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载