文件名称: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