文件名称:baoshu
介绍说明--下载内容均来自于网络,请自行研究使用
m个人围成一圈,1,2,3循环报数,报到3的人退出,并将退出的序号依次存到数组p中,包括最后一个人的序号。到最后只余1人,输出最后留下的是第几号(最初的序号,以1起始)。-m people form a circle,they report 1,2,3 cyclically. People who report 3 quit and exit numbers sequentially stored in the array P, including the last one s number. In the end,there will be only one person,you should output the last one s number and array P (original numbers, starting with 1).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
baoshu.c