Description: Josephus Problem Solving (Josephus ) a description of the problem is: numbered 1,2, ..., n, n individuals in a clockwise direction around a circle, each holding a password (positive integer). A start optionally a positive integer as the upper limit of the number of reported m, started from the first in a clockwise direction starting from the number reported, report stops at several m. reported m people out of the line, his password as the new m values , in a clockwise direction from the next person he began to re-number from a newspaper, and so on, until all the people all the columns so far. tried to design a program, according to the column order prints each number.) this program is to solve the above problems
To Search:
File list (Check if you may need any files):
shiyan1.txt