文件名称:yuesefuhuan
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:659byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设有编号为1,2,…,n的n(n>0)个人围成一个圈,每个人持有一个密码m。从第一个人开始报数,报到m时停止报数,报m的人出圈,再从他的下一个人起重新报数,报到m时停止报数,报m的出圈,……,如此下去,直到所有人全部出圈为止。当任意给定n和m后,设计算法求n个人出圈的次序。-Has a number 1,2, ..., n of n (n> 0) individuals in a circle, each person holds a password m. The number of individual reports from the first start, stop newspaper report m the number of people who reported m out of laps, and then the next person from the beginning of his re-reported the number, appearance, stop reporting the number of m, at m of the circle, ... ..., and so on until all the circles all up. When any given n and m, the design algorithm for getting the order of n individuals a circle.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
约瑟夫环.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.