Description: A total of N individual numbers 1 to N, which take personal numbers 1 to M M circle. After gettin number (1 ≤ K ≤ M) the first K individuals turn to when the number of people reported as L, the smallest number of people who will not enter into this circle of people, and people are beginning to re-join Repeat process. When inserted into the final after this person Countin, reported that the number is L will be the first L and (L-1) and then let the two exchanged after the first exchange of personal L column, and then start the next person the reported number of people then exchange the first L and L (L-1), let the first L after a personal exchange column, and so forth. Q. The last person to leave the number of
To Search:
File list (Check if you may need any files):
数算第二次实验
..............\Debug
..............\.....\数算第二次实验.exe
..............\.....\数算第二次实验.ilk
..............\.....\数算第二次实验.pdb
..............\数算第二次实验
..............\数算第二次实验.sdf
..............\数算第二次实验.sln
..............\数算第二次实验.v11.suo
..............\..............\Debug
..............\..............\.....\CL.read.1.tlog
..............\..............\.....\CL.write.1.tlog
..............\..............\.....\link-cvtres.read.1.tlog
..............\..............\.....\link-cvtres.write.1.tlog
..............\..............\.....\link-rc.read.1.tlog
..............\..............\.....\link-rc.write.1.tlog
..............\..............\.....\link.1400-cvtres.read.1.tlog
..............\..............\.....\link.1400-cvtres.write.1.tlog
..............\..............\.....\link.1400-rc.read.1.tlog
..............\..............\.....\link.1400-rc.write.1.tlog
..............\..............\.....\link.1400.read.1.tlog
..............\..............\.....\link.1400.write.1.tlog
..............\..............\.....\link.9120-cvtres.read.1.tlog
..............\..............\.....\link.9120-cvtres.write.1.tlog
..............\..............\.....\link.9120-rc.read.1.tlog
..............\..............\.....\link.9120-rc.write.1.tlog
..............\..............\.....\link.9120.read.1.tlog
..............\..............\.....\link.9120.write.1.tlog
..............\..............\.....\link.read.1.tlog
..............\..............\.....\link.write.1.tlog
..............\..............\.....\vc110.idb
..............\..............\.....\vc110.pdb
..............\..............\.....\另类约瑟夫问题.obj
..............\..............\.....\数算第二次实验.lastbuildstate
..............\..............\.....\数算第二次实验.log
..............\..............\strange Joseph.cpp
..............\..............\数算第二次实验.vcxproj
..............\..............\数算第二次实验.vcxproj.filters