文件名称:Joseph
介绍说明--下载内容来自于网络,使用问题请自行百度
编号是 1,2,……,n 的 n 个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值 m,从第
一个仍开始顺时针方向自 1 开始顺序报数,报到 m 时停止报数。报 m 的
人出列,将他的密码作为新的 m 值,从他在顺时针方向的下一个人开始
重新从 1 报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。(The number is 1, 2,...... N's n individuals sit in circles clockwise, with each person having only one password (positive integer). One began to choose a positive integer as the number of the upper limit of M, from the
One is to start a clockwise direction from the beginning of the order number 1, back off m stop. M
People out of the line, his password as the new m value, from his start in a clockwise direction of the next person
To count off from 1, and so on, until all the columns so far. Design a procedure to find out the column order.)
一个仍开始顺时针方向自 1 开始顺序报数,报到 m 时停止报数。报 m 的
人出列,将他的密码作为新的 m 值,从他在顺时针方向的下一个人开始
重新从 1 报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。(The number is 1, 2,...... N's n individuals sit in circles clockwise, with each person having only one password (positive integer). One began to choose a positive integer as the number of the upper limit of M, from the
One is to start a clockwise direction from the beginning of the order number 1, back off m stop. M
People out of the line, his password as the new m value, from his start in a clockwise direction of the next person
To count off from 1, and so on, until all the columns so far. Design a procedure to find out the column order.)
相关搜索: 约瑟夫
(系统自动生成,下载前可以参看下载内容)
下载文件列表
约瑟夫\main.cpp
约瑟夫\main.exe
约瑟夫\main.o
约瑟夫\约瑟夫.cpp
约瑟夫\约瑟夫.layout
约瑟夫\bin\Debug
约瑟夫\obj\Debug
约瑟夫\bin
约瑟夫\obj
约瑟夫
约瑟夫\main.exe
约瑟夫\main.o
约瑟夫\约瑟夫.cpp
约瑟夫\约瑟夫.layout
约瑟夫\bin\Debug
约瑟夫\obj\Debug
约瑟夫\bin
约瑟夫\obj
约瑟夫
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.