文件名称:SM
介绍说明--下载内容均来自于网络,请自行研究使用
任务:一堆猴子都有编号,编号是1,2,3 ...m ,这群猴子(m个)按照1-m的顺序围坐一圈,从第1开始数,每数到第N个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。
功能:输入数据:输入m,n(m,n 为整数且n<m)
输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能-Tasks: a bunch of monkeys have a number, number is 1,2,3 ... m, this group of monkeys (m) of 1-m in accordance with the order around a circle, from the beginning of a number, each number to the first N months, the monkeys will leave this circle, and so on down until the final lap in only a monkey, the monkey is king. Functions: input data: Input m, n (m, n and an integer n <m)
输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能
功能:输入数据:输入m,n(m,n 为整数且n<m)
输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能-Tasks: a bunch of monkeys have a number, number is 1,2,3 ... m, this group of monkeys (m) of 1-m in accordance with the order around a circle, from the beginning of a number, each number to the first N months, the monkeys will leave this circle, and so on down until the final lap in only a monkey, the monkey is king. Functions: input data: Input m, n (m, n and an integer n <m)
输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SM.c