文件名称:JosephCircle
-
所属分类:
- 标签属性:
- 上传时间:2013-09-26
-
文件大小:16.31kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
问题描述:
从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/
JosephCircle/Debug/
JosephCircle/Debug/BuildLog.htm
JosephCircle/Debug/JosephCircle.exe.embed.manifest
JosephCircle/Debug/JosephCircle.exe.embed.manifest.res
JosephCircle/Debug/JosephCircle.exe.intermediate.manifest
JosephCircle/Debug/JosephList.obj
JosephCircle/Debug/mt.dep
JosephCircle/Debug/vc90.idb
JosephCircle/Debug/vc90.pdb
JosephCircle/JosephCircle.vcproj
JosephCircle/JosephCircle.vcproj.bqrm-PC.bqrm.user
JosephCircle/JosephList.cpp
JosephCircle/问题描述.txt
JosephCircle/Debug/
JosephCircle/Debug/BuildLog.htm
JosephCircle/Debug/JosephCircle.exe.embed.manifest
JosephCircle/Debug/JosephCircle.exe.embed.manifest.res
JosephCircle/Debug/JosephCircle.exe.intermediate.manifest
JosephCircle/Debug/JosephList.obj
JosephCircle/Debug/mt.dep
JosephCircle/Debug/vc90.idb
JosephCircle/Debug/vc90.pdb
JosephCircle/JosephCircle.vcproj
JosephCircle/JosephCircle.vcproj.bqrm-PC.bqrm.user
JosephCircle/JosephList.cpp
JosephCircle/问题描述.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.