文件名称:yuesefu--wanggong
介绍说明--下载内容均来自于网络,请自行研究使用
设编号为1,2, … ,n(n>0)的n个人顺时针方向一圈,每人持有一个正整数密码,开始时,任意给出一个报数上限值,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,报m的人出列,将他的密码作新的m值,从他顺时针方向上的下一个人重新自1起顺序报数 如此下去,直到所有人全部出列为止.要求设计一个程序模拟此过程,并给出出列人的序列。-Let numbered 1,2, ..., n (n> 0) of n individuals clockwise circle, each holding a positive integer code, at the beginning, any limit on the number given a newspaper, starting from the first individual clockwise order starting from a report number, report to stop the reported m the number of people who reported m out of line, his password for the new m value, from his clockwise direction from the next person to re-order reports from a number and so on until all the columns all up. to design a program to simulate this process, and gives people a column sequence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yuesefu--wanggong-11-fuchunfen.c