文件名称:Youshefu
介绍说明--下载内容均来自于网络,请自行研究使用
vc程序完成约瑟夫问题。/*约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。*/
-Joseph completed vc problem./* A descr iption of Joseph is: No. 1,2, ..., n of n individuals according to a clockwise direction around a circle, no one to hold a password. The beginning of one person reported a positive integer as the number of upper limit m, from the first individual to embark on the clockwise reported since the beginning of one number, to report the number of m is to stop the newspaper. Reported m the person out of his password as the new m value, from him in a clockwise direction on the next person started to count off from one, and so on, until all the column until all.* /
-Joseph completed vc problem./* A descr iption of Joseph is: No. 1,2, ..., n of n individuals according to a clockwise direction around a circle, no one to hold a password. The beginning of one person reported a positive integer as the number of upper limit m, from the first individual to embark on the clockwise reported since the beginning of one number, to report the number of m is to stop the newspaper. Reported m the person out of his password as the new m value, from him in a clockwise direction on the next person started to count off from one, and so on, until all the column until all.* /
相关搜索: 约瑟夫问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
约瑟夫
......\3356705.txt
......\3356705.txt