文件名称:houzi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.38mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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/10.14-zuoye.cpp
10.14-zuoye/10.14-zuoye.ncb
10.14-zuoye/10.14-zuoye.sln
10.14-zuoye/10.14-zuoye.suo
10.14-zuoye/10.14-zuoye.vcproj
10.14-zuoye/Debug/
10.14-zuoye/Debug/10.14-zuoye.exe
10.14-zuoye/Debug/10.14-zuoye.ilk
10.14-zuoye/Debug/10.14-zuoye.obj
10.14-zuoye/Debug/10.14-zuoye.pch
10.14-zuoye/Debug/10.14-zuoye.pdb
10.14-zuoye/Debug/BuildLog.htm
10.14-zuoye/Debug/stdafx.obj
10.14-zuoye/Debug/vc70.idb
10.14-zuoye/Debug/vc70.pdb
10.14-zuoye/ReadMe.txt
10.14-zuoye/stdafx.cpp
10.14-zuoye/stdafx.h
10.14-zuoye/10.14-zuoye.cpp
10.14-zuoye/10.14-zuoye.ncb
10.14-zuoye/10.14-zuoye.sln
10.14-zuoye/10.14-zuoye.suo
10.14-zuoye/10.14-zuoye.vcproj
10.14-zuoye/Debug/
10.14-zuoye/Debug/10.14-zuoye.exe
10.14-zuoye/Debug/10.14-zuoye.ilk
10.14-zuoye/Debug/10.14-zuoye.obj
10.14-zuoye/Debug/10.14-zuoye.pch
10.14-zuoye/Debug/10.14-zuoye.pdb
10.14-zuoye/Debug/BuildLog.htm
10.14-zuoye/Debug/stdafx.obj
10.14-zuoye/Debug/vc70.idb
10.14-zuoye/Debug/vc70.pdb
10.14-zuoye/ReadMe.txt
10.14-zuoye/stdafx.cpp
10.14-zuoye/stdafx.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.