登录
首页 » Visual C++ » Monkey

Monkey

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

  • TVehicleDynamh
    ,建立车体6个自由度加上前轮转向系统1个自由度的汽车数学模型;该汽车数学模型不需引入很多的人为假设;可以实现给定汽汽车前轮转角,也可以不给定前轮转角;不依赖需要复杂测定的侧向力函数及相关模型参数;考虑了轮胎的滚动特性 已通过测试。 (Vehicle mathematical model of one degree of freedom, the establishment of the body' s six degrees of freedom coupled with front-wheel steering system mathematical model of the car does not need to introduce a lot of people assume front wheel angle can be achieved given steam can also be given front wheel angle does not depend on the complex determination of the lateral force function and model parameters consider rolling characteristics of the tire has been tested.)
    2012-07-16 17:29:54下载
    积分:1
  • Ssimmple_jpegu
    简易的JPEG压缩程序源码(MMatlab实现) (Easy JPEG compression program source (MMatlab implementation))
    2012-09-15 14:17:31下载
    积分:1
  • matlab2012_vs2005
    解决新版本MATLAB与VC++混合编程问题。经过验证能够使用(Solve the problem of the new version MATLAB and VC++ for hybrid programming. Proven ability to use)
    2012-07-23 08:31:43下载
    积分:1
  • Sppiirari
    对雷达系统仿真和雷达显示出来器进行了简要综述,,详细介绍了雷达显示出来器仿真思想及其实现方法。 (Details out is a brief overview of the radar system simulation and radar display, radar display out Simulation thought and its implementation method.)
    2012-09-10 00:26:17下载
    积分:1
  • HsT2Hlp_Demo
    HsT2Hlp_Demo,中信证券api简单的api示例(HsT2Hlp_Demo, CITIC Securities api api simple example)
    2014-02-13 10:49:59下载
    积分:1
  • Matlab_Image_Processing
    这是一个MATLAB图像处理程序,可以实现对图像的预处理(This is a MATLAB image-processing program, you can achieve the right image preprocessing)
    2010-01-05 09:52:19下载
    积分:1
  • qpsk
    This is qpsk ber curve simulation.
    2011-05-26 18:37:33下载
    积分:1
  • MATLAB-c
    msk的调制解调MATLAB源代码,很不错,值得看看(msk modulation and demodulation MATLAB source code, very good, worth a look)
    2013-11-15 16:35:31下载
    积分:1
  • Harris
    提取Harris角点程序,非常好用的角点提取程序(Harris corner extraction program, very easy to use corner detection process)
    2011-05-04 20:14:58下载
    积分:1
  • matlabtools
    介绍了MATLAB工具中的数学工具,是你用MABLAB开发时必不可少的参考书籍啊。(MATLAB tools introduced in the mathematical tools, is when you develop MABLAB indispensable reference books ah.)
    2007-11-12 22:21:01下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载