文件名称:xiaochengxu
介绍说明--下载内容均来自于网络,请自行研究使用
约瑟夫问题:有n只猴子,按顺时针方向围成一圈选大王(编号从1到n),从第1号开始报数,一直数到m,数到m的猴子退出圈外,剩下的猴子再接着从1开始报数。就这样,直到圈内只剩下一只猴子时,这个猴子就是猴王,编程求输入n,m后,输出最后-Joseph questions: Have n monkeys, according to election clockwise circle king (No. from 1 to n), from No. 1 to start off, has been the number to m, to m the number of monkeys outside exit, the remaining monkeys followed by one to start off from. In this way, until the circle is only a monkey, this monkey is the Monkey King, programming for input n, m, the output of the final
相关搜索: 约瑟夫问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
xiaochengxu
...........\iu.C
...........\Josephus.C
...........\sd.C
...........\分形-羊齿叶.C
...........\字符串.C
...........\带参数运行功能示例.c
...........\文本窗口颜色的设置.C
...........\杨辉三角.C
...........\画圆.C
...........\画箭头.C
...........\画线.C
...........\画线2.C
...........\窗口内文本的输入函数.C
...........\算N!.C
...........\链表.C
...........\iu.C
...........\Josephus.C
...........\sd.C
...........\分形-羊齿叶.C
...........\字符串.C
...........\带参数运行功能示例.c
...........\文本窗口颜色的设置.C
...........\杨辉三角.C
...........\画圆.C
...........\画箭头.C
...........\画线.C
...........\画线2.C
...........\窗口内文本的输入函数.C
...........\算N!.C
...........\链表.C