文件名称:houzi
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.38mb
- 下载次数:
- 0次
- 提 供 者:
- l**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
n只猴子要选猴王,所有猴子按1,2,…,n编号围坐一圈,从第1号开始按1,2, …,m报数,凡报到m号的猴子退出圈外,如此循环报数,直到圈内剩下一只猴子时,这个猴子就是猴王。编写一个程序实现上述过程,n和m由键盘输入。-n monkeys to choose the Monkey King, all the monkeys by 1,2, ..., n No sitting around, starting from No. 1 by 1,2, ..., m the number reported, where m number of monkeys to report exit out of the loop, reported that the number of cycles until the circle remains a monkey, this monkey is the Monkey King. Write a program to achieve the above process, n and m from the keyboard input.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
10.14-zuoye
...........\10.14-zuoye.cpp
...........\10.14-zuoye.ncb
...........\10.14-zuoye.sln
...........\10.14-zuoye.suo
...........\10.14-zuoye.vcproj
...........\Debug
...........\.....\10.14-zuoye.exe
...........\.....\10.14-zuoye.ilk
...........\.....\10.14-zuoye.obj
...........\.....\10.14-zuoye.pch
...........\.....\10.14-zuoye.pdb
...........\.....\BuildLog.htm
...........\.....\stdafx.obj
...........\.....\vc70.idb
...........\.....\vc70.pdb
...........\ReadMe.txt
...........\stdafx.cpp
...........\stdafx.h
...........\10.14-zuoye.cpp
...........\10.14-zuoye.ncb
...........\10.14-zuoye.sln
...........\10.14-zuoye.suo
...........\10.14-zuoye.vcproj
...........\Debug
...........\.....\10.14-zuoye.exe
...........\.....\10.14-zuoye.ilk
...........\.....\10.14-zuoye.obj
...........\.....\10.14-zuoye.pch
...........\.....\10.14-zuoye.pdb
...........\.....\BuildLog.htm
...........\.....\stdafx.obj
...........\.....\vc70.idb
...........\.....\vc70.pdb
...........\ReadMe.txt
...........\stdafx.cpp
...........\stdafx.h