文件名称:The-Monkey-King-selected-array
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:780byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
猴子选大王
*问题描述:一堆猴子都有编号,编号是1,2,3 ...m ,这群猴子(m个)按照1-m的顺序围坐一圈,从第1开始数,每数到第N个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。
*输入数据:输入m,n m,n 为整数,n<mtd
*输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能 -The Monkey King of choice FOR circulation Monkey King of choice-
* descr iption: a pile of monkeys have Numbers, Numbers is 1, 2, 3... M, this group of monkeys (m) according to the order of 1-m sitting a circle, from the first start to count, each count to the first N, this monkey leave this circle, this in turn down, until only one circle of a monkey, the monkey as king.
* input data: input m, n m, n for integer, n < MTD
* output form: Chinese hint according to m a monkey, several methods of n number, the output of the monkey is king for number, build a function to perform this function
*问题描述:一堆猴子都有编号,编号是1,2,3 ...m ,这群猴子(m个)按照1-m的顺序围坐一圈,从第1开始数,每数到第N个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。
*输入数据:输入m,n m,n 为整数,n<mtd
*输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能 -The Monkey King of choice FOR circulation Monkey King of choice-
* descr iption: a pile of monkeys have Numbers, Numbers is 1, 2, 3... M, this group of monkeys (m) according to the order of 1-m sitting a circle, from the first start to count, each count to the first N, this monkey leave this circle, this in turn down, until only one circle of a monkey, the monkey as king.
* input data: input m, n m, n for integer, n < MTD
* output form: Chinese hint according to m a monkey, several methods of n number, the output of the monkey is king for number, build a function to perform this function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
猴子选大王-数组.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.