登录
首页 » C# » 排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,...

排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,...

于 2022-04-24 发布 文件大小:739.00 B
0 138
下载积分: 2 下载次数: 1

代码说明:

排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。 -Sorting system design features: Let numbered 1,2,3, ... ..., n of the n (n> 0) individuals sitting clockwise circle, each person holds a positive integer password. The beginning of a positive integer as reported optional maximum number of m, starting from the first person in a clockwise direction starting from a sequence reported the number of m is to stop the newspaper to report the number of people who reported m out of the column, his password as a new m value, the next person start from his re-reported from a number of. If things go on, until all of the column until all the up. Make n take the maximum 30. To design a program to simulate this process, find out the column number sequence.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Unity-v5.3.1f1(pc).
    太阳系运行 UNITY3d 模拟运行 太阳系运行 UNITY3d 模拟运行 太阳系运行 UNITY3d 模拟运行 太阳系运行 UNITY3d 模拟运行(solar system operation by unity3d)
    2016-07-06 11:59:44下载
    积分:1
  • Learning OpenCV中文版.pdf
    opencv深度学习例程,第五版,中文翻译,运用c++语言,内含有例程,以及源码以供学习(opencv tutorial with c++)
    2017-10-12 10:31:29下载
    积分:1
  • STM32PUCOS-II=GPIO_PS2_TIM
    1.板上的8 个按键分别分别代表数字1-8,按下一个按键将结果通过串口发送到PC机上显示; 2.使用两个定时器模块,分别定时为1ms 和100ms 产生中断,使用它们分别 产生1s的定时时间,将时间分别显示到数码管上; 3.外接PS/2小键盘,将按键的值通过串口显示到PC机上。(A panel of eight key representing the number 1-8 press a key the results sent through the serial port on a PC display (2) use two timer modules, respectively, of 1ms and 100ms timer generates an interrupt, use them, respectively, Produce the timing of the 1s, the time display to the digital control External PS/2 keyboard, the key value of displayed through the serial port to a PC.)
    2020-09-08 15:18:03下载
    积分:1
  • KeyboardHook
    VC++ 键盘监控程序,可键盘输入文本,当你按下键盘上的每一个键的时候,它都可以监控到,并弹出窗口告诉你按下的是哪个键,是基于HOOK技术来说的。(VC++ keyboard monitoring procedures, keyboard input text when you press each key on the keyboard, it can be monitored, and the pop-up window telling you which key is pressed, it is based on the HOOK technology.)
    2013-12-22 15:43:07下载
    积分:1
  • C#简单服务器
    用C#所写服务器,能够挂上静态页面,有UI界面。
    2023-02-24 05:25:04下载
    积分:1
  • lecture-of-math-modeling
    这是姜启源教授在清华大学讲解数学建模课程的资料,对于数学建模由入门到精通十分有用(lecture in math modeling,given by Professor JiangQiyuan )
    2011-05-06 20:43:22下载
    积分:1
  • appenddemtrshar
    说明:  一个可以处理算式符号的计算器程序,通过栈来实现,(A computer program that can process arithmetic symbols, through the stack to achieve,)
    2018-12-30 10:02:49下载
    积分:1
  • 基于MFC的视频图像获取
    采用MFC特有的VFW类实现对电脑摄像头和USB摄像头信息的读取
    2022-02-19 22:53:31下载
    积分:1
  • 同名文件根据设定文件名前多少位或全名归并到文件夹的程序代码部分,适合大批量文件寻找同名规则进行文件夹整理
    同名文件根据设定文件名前多少位或全名归并到文件夹的程序代码部分,适合大批量文件寻找同名规则进行文件夹整理,如:同目录下有123.txt 123.exe 123.zip 456.jpg 456.tif,运行后会新建123和456文件夹,并把名称为 123的文件归并到123文件夹,名称为456的文件归并到456文件夹
    2022-05-05 07:04:20下载
    积分:1
  • yuejnj
    c# 宝典源代码 详细注释 程序员必备 10 牛人写的专业代码,窗体设计、控件... 单像空间后方交会,是摄影测量学中,一种基础算法。本压缩包,用的是
    2010-10-24 11:27:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载