文件名称:ysf
介绍说明--下载内容均来自于网络,请自行研究使用
用数组解决约瑟夫问题的源程序
【约瑟夫问题】
编号为1,2,......,n的n个人按照顺时针方向围坐一圈。从第一个人开始顺时针方向自1开始报数,报到m时停止报数。报m 的人出列,从他在顺时针方向的下一个人开始重新报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。其中n,m由键盘输入。
-Joseph used the array to resolve the issue of source code problems] [Joseph 1,2 ,......, n number of n individuals in accordance with the clockwise direction around a circle. From the first individual to start a clockwise direction from the one to start off, back off m stop. Reported m the list of people, from him the next in a clockwise direction as re-reported the number of individuals, it goes on like this until all the column until all. Design a procedure to find out the column order. In which n, m by the keyboard input.
【约瑟夫问题】
编号为1,2,......,n的n个人按照顺时针方向围坐一圈。从第一个人开始顺时针方向自1开始报数,报到m时停止报数。报m 的人出列,从他在顺时针方向的下一个人开始重新报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。其中n,m由键盘输入。
-Joseph used the array to resolve the issue of source code problems] [Joseph 1,2 ,......, n number of n individuals in accordance with the clockwise direction around a circle. From the first individual to start a clockwise direction from the one to start off, back off m stop. Reported m the list of people, from him the next in a clockwise direction as re-reported the number of individuals, it goes on like this until all the column until all. Design a procedure to find out the column order. In which n, m by the keyboard input.
相关搜索: 用数组处理约瑟夫问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
用户数组解决约瑟夫问题.txt