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

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

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

  • STM32+WM8978录音和放音
    使用全双工的I2S控制音频CODEC芯片WM8978芯片进行录音和放音
    2023-03-18 22:45:05下载
    积分:1
  • C#进销存完整系统源码(经典源码,有参考价值)
    附加数据库后 即可使用,无需修改密码,数据库在 CHEXCDataBase 目录
    2018-11-27下载
    积分:1
  • 二进制神经网络(BNN)bnn-fpga-master
    说明:  bnn-fpga是FPGA上CIFAR-10的二进制神经网络(BNN)加速器的开源实现。 加速器针对低功耗嵌入式现场可编程SoC,并在Zedboard上进行了测试。 在编写CIFAR-10测试集中的10000张图像时,错误率是11.19%。(bnn-fpga is an open-source implementation of a binarized neural network (BNN) accelerator for CIFAR-10 on FPGA. The architecture and training of the BNN is proposed by Courbarieaux et al. and open-source Python code is available. Our accelerator targets low-power embedded field-programmable SoCs and was tested on a Zedboard. At time of writing the error rate on the 10000 images in the CIFAR-10 test set is 11.19%.)
    2020-07-27 07:02:34下载
    积分:1
  • robotdllol
    一些仿真机器人足球程序,对大家的比赛和练习有很大帮助(some robot soccer simulation procedures for all competitions and will be of great help to practice)
    2020-12-06 16:09:23下载
    积分:1
  • 寄存器
    风驰单片机教程的寄存器版本源码,值得下载学习。(FengChiTianXia microcontroller tutorial register version of the source code, it is worth learning to download.)
    2017-08-04 15:50:56下载
    积分:1
  • postfix1
    A small program for demonstrating the Postfix notation, you can input the postfix equation in the command window
    2009-05-29 03:18:39下载
    积分:1
  • HugeInt
    C++实现大整数类的运算符重载,输入输出重载,和关系判断重载(C++ achieve large integer class of operator overloading, overloading the input and output, and the relationship between judges overloaded)
    2015-12-26 14:43:13下载
    积分:1
  • 2812_can
    DSP2812能够实现CAN的发送与接收,亲测可用(Transmit and Recive for TMS320F2812 by CAN)
    2020-12-28 09:39:02下载
    积分:1
  • stm429 I2C读写eeprom例程
    stm429 I2C读写eeprom例程,采用I2C接口读写EEPROM的例程,帮助开发者学习I2C接口
    2022-05-09 15:00:36下载
    积分:1
  • learning-opencv-ch4-2
    学习opencv第四章第二题源代码(C语言版)(Chapter IV second question learning opencv source code (C language version))
    2013-11-14 19:17:10下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载