文件名称:The-child-king
介绍说明--下载内容均来自于网络,请自行研究使用
编程序,使用链表来实现如下问题:有12人围坐成一圈(沿顺时针方向依次编号为1到按规则淘汰其中11人后(沿顺时针方向每当数到k时,那一人员就被"淘汰出局"),输出最后所剩那一个人的编号,并输出淘汰过程的"中间结果数据"。-Programmed, use the list to achieve the following issues: 12 people sitting in a circle (clockwise direction are numbered 1 to rules eliminated after 11 (in a clockwise direction each time the count to k, that staff " eliminated" ), the output of the last remaining number of that one person, and the output process of elimination of intermediate results data.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
6_15kingofmonkey.cpp