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

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

于 2022-04-24 发布 文件大小:739.00 B
0 103
下载积分: 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 个回复

  • 007654
    检测鼠标信息,C++Builder精选编程学习源码,很好的参考资料。(Detecting mouse information, C++Builder select learning programming source code, a good reference.)
    2013-11-22 11:39:56下载
    积分:1
  • 8*8*8光立方
    8*8*8光立方完整程序,注释清晰,可提供原理图及PCB图。多种动画效果,算法已封装好,只需调用即可,各端口连接说明均在程序中提及,只需按照自己的硬件接口修改程序端口即可使用。
    2022-07-18 15:27:53下载
    积分:1
  • [Windows程序设计].Programming.Windows.CHS
    说明:  [Windows程序设计].Programming.Windows.CHS.chm([Windows].Programming.Windows.CHS.chm)
    2019-01-25 09:34:32下载
    积分:1
  • isodata
    isodata聚类算法流程图,开发环境可以是vc,也可以是matlab。(Isodata clustering algorithm flow chart, the development environment can be a vc, also can be the matlab)
    2013-11-19 21:51:03下载
    积分:1
  • Steppingmotor
    此源码为c#编写的pc上位机程序,通过串口实现对3路步进电机的控制,可选择电机使能,正反转,转动角度,细分数等(This source code is written in c# program pc PC through the serial interface on the 3-way stepping motor control, motor option is enabled, rotating, rotation angle, and number of segments)
    2010-08-19 10:34:29下载
    积分:1
  • readdicom
    View dicom Picture use C++
    2010-09-21 10:18:42下载
    积分:1
  • rtc
    RTCSample is a fully functional RTC application the uses the RTC Client API to expose Presence, Instant Messaging, and PC-to-PC audio/video call features.
    2008-01-30 18:44:17下载
    积分:1
  • 3Code_for_Medx
    3x3中值滤波器的FPGA实现现(VERILOG)可直接使用。 (3x3 median filter FPGA implementation of the present (VERILOG) can be used directly.)
    2012-07-30 00:49:45下载
    积分:1
  • AD9850
    基于MSP430G2553的AD9850波形发生调试程序,亲测通过,稳定可靠(MSP430G2553,AD9850,CCS5.0 as software)
    2021-03-15 16:29:22下载
    积分:1
  • 123
    单片机ds1302程序,能够实现时间的自动更新,掉电不消失(Ds1302 chip program, to achieve the automatic time update, power down does not disappear)
    2011-10-10 16:50:33下载
    积分:1
  • 696518资源总数
  • 105570会员总数
  • 13今日下载