文件名称:Josephus-problem
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2016-03-29
- 文件大小:
- 1.04mb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设编号为1-n的n(n>0)个人按顺时针方向围成一圈.首先第1个人从1开始顺时针报数,报m的人(m 为正整数).令其出列。然后再从他的下一个人开始,重新从1顺时针报数,报m的人,再令其出列。如此下去,直到圈中所有人出列为止。求出列编号序列。-Numbered 1-n set of n (n> 0) Personal clockwise circle. First Person 1 1 clockwise report the number of people reported to m (m is a positive integer). Make it out of the line. Then the next person his start again 1 clockwise report the number of people who reported m, and then make it out of the column. And so on until everyone in the circle until the column. Calculated column numbering sequence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cpp1.cpp
Cpp1.dsp
Cpp1.dsw
Cpp1.ncb
Cpp1.opt
Cpp1.plg
Debug
.....\Cpp1.exe
.....\Cpp1.ilk
.....\Cpp1.obj
.....\Cpp1.pch
.....\Cpp1.pdb
.....\vc60.idb
.....\vc60.pdb