文件名称:Cpp1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:832byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
约瑟夫环问题:设有编号为1,2,3……n的n个人顺时针方向围坐一圈,每人有一密码(正整数)。开始时给出一报数上限m,从编号为1的人开始报数,报m的人出列;以后将出列者的密码作为新的m,从顺时针方向紧挨着他的下一个人开始报数……直至所有人出列。-Joseph Central question: has numbered 1,2,3 ... ... n of n individuals clockwise around a circle, each have a password (positive integer). The beginning of a newspaper is given the maximum number of m, from the No. 1 people are reported to the number of people who reported that a column m will be out of the password as a new m, from a clockwise direction next to his next reported that the number of people began ... ... until all the column.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cpp1.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.