文件名称:Josephus
介绍说明--下载内容来自于网络,使用问题请自行百度
有N个小孩围 成一圈并依次编号,教师指定从第M个小孩开始报数,报到第S个小孩即令其出列。然后从下一个孩子继续报数,数到第S个小孩又令其出列,如此直到只剩一个小孩。求小孩出列的先后顺序。-There are N child form a circle and followed by number of teachers designated M from the first child to start off, the first S to report that their child out of. And then continue to the next reported that the number of children, number of children to the first S out and make it out, so until there are only a child. Seek out the sequence of children.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Josephus.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.