文件名称:1_Josephus
介绍说明--下载内容均来自于网络,请自行研究使用
Josephus环问题:n个人围成一圈,编号从1到n,报数1,2,3,从编号为1的人开始报数,报到3的离开,下面的人接着从1开始报数,依次下去,写程序求最后剩下来的一个人编号是几。-Josephus ring problem: n personal circle, numbered from 1 to n, the number of reported 1,2,3, from the number 1 people began to count off, report three to leave, the following people then began to report from a number of turn down, write a program to find the last remaining number of a person is a few.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1_Josephus\jesephus_link.cpp
..........\Josephus(循环链表).cpp
..........\Josephus(顺序表).cpp
..........\josephus.cpp
1_Josephus