文件名称:JosephCircle
介绍说明--下载内容均来自于网络,请自行研究使用
问题描述:
从1到n这n个人顺时针坐着,每个人手里拿着一个密码,第一轮初始一个密码,从第一个人开始,数到这个密码的人,报出自己的密码,
此人退出。从下一个人开始,依照刚才报出的密码再次筛选人退出,直到最后一个人。
第一个输入为人数,第二个输入为初始密码,接下来为每个人的密码。
使用循环链表实现。
输入:
6 3 6 5 4 3 2 1
输出:
3 1 4 2 5 6-Problem Descr iption: This is from 1 to n n individuals sitting clockwise, each person holding a password, a password the first round of initial, beginning from the first person, the number of people to this password, and give your password , who quit. From the next person, according to the password again just reported screening people out, until the last one. The first input is the number of the second input of the initial password, then passwords for everyone. Using circular linked list implementation. Input: 63654321 Output: 314,256
从1到n这n个人顺时针坐着,每个人手里拿着一个密码,第一轮初始一个密码,从第一个人开始,数到这个密码的人,报出自己的密码,
此人退出。从下一个人开始,依照刚才报出的密码再次筛选人退出,直到最后一个人。
第一个输入为人数,第二个输入为初始密码,接下来为每个人的密码。
使用循环链表实现。
输入:
6 3 6 5 4 3 2 1
输出:
3 1 4 2 5 6-Problem Descr iption: This is from 1 to n n individuals sitting clockwise, each person holding a password, a password the first round of initial, beginning from the first person, the number of people to this password, and give your password , who quit. From the next person, according to the password again just reported screening people out, until the last one. The first input is the number of the second input of the initial password, then passwords for everyone. Using circular linked list implementation. Input: 63654321 Output: 314,256
(系统自动生成,下载前可以参看下载内容)
下载文件列表
JosephCircle
............\Debug
............\.....\BuildLog.htm
............\.....\JosephCircle.exe.embed.manifest
............\.....\JosephCircle.exe.embed.manifest.res
............\.....\JosephCircle.exe.intermediate.manifest
............\.....\JosephList.obj
............\.....\mt.dep
............\.....\vc90.idb
............\.....\vc90.pdb
............\JosephCircle.vcproj
............\JosephCircle.vcproj.bqrm-PC.bqrm.user
............\JosephList.cpp
............\问题描述.txt