文件名称:yuesefu--wanggong
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:584byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设编号为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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.