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

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

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

  • CourseManager
    课程管理系统。本例将介绍如何构造一个ODBC数据库以及通过MFC如何使用ODBC数据库,并且通过MFC来实现一个课程信息管理系统。(This example describes how to construct an ODBC database and how to use the ODBC database by MFC and MFC to implement a program through information management system.)
    2013-12-18 13:05:08下载
    积分:1
  • spatial_toolbox_2
    用于matlab的空间计量功能,集成了一系列的说明等(spatial_toolbox for matlab)
    2017-09-04 00:01:44下载
    积分:1
  • 一个基于VS2005环境,用C#编写的一个计算机等级考试报名系统,基于access数据库的。...
    一个基于VS2005环境,用C#编写的一个计算机等级考试报名系统,基于access数据库的。-VS2005-based environment, using C# written in a computer grade examination registration system, based on access database.
    2022-03-01 15:49:17下载
    积分:1
  • MACD
    说明:  双线、双色显示macd柱子,柱子走弱会显示白色,方便确认柱子走弱(Double-line and double-color display MACD pillars. When the pillars weaken, they will show white. It is convenient to confirm that the pillars weaken. Double-line and double-color display MACD pillars. When the pillars weaken, they will show white. It is convenient to confirm that the pillars weaken.)
    2020-06-20 09:00:01下载
    积分:1
  • DicomDisplay
    vtkImageViewer2实现的放大,缩小,window color/window level调整(vtkImageViewer2 achieve zoom in, zoom, window color/window level adjustment)
    2013-07-13 13:02:54下载
    积分:1
  • heibaiqi
    很不错的一款C++开发的黑白棋游戏,对游戏编程的朋友比较有用,可以作参考。(A very good C++ development Othello, friend of useful game programming, can be used for reference.)
    2011-05-25 06:12:19下载
    积分:1
  • raytracer111
    电磁场与微波技术下的射线追踪技术。应用c语言编程(Electromagnetic Field and Microwave Technology under the ray tracing technique. Application c programming language)
    2013-06-02 20:32:24下载
    积分:1
  • UIUC推出的CUDA学习教程 UIUC_CudaProgrammingGuide
    UIUC的工程院在全美堪称至尊级,这是UIUC推出的CUDA学习教程,非常系统地讲述其特点及应用。很好,很强大!(UIUC' s at the National Academy of Engineering called Extreme class, This is UIUC Study launched CUDA tutorial, very systematically about their characteristics and applications. Very good, very powerful!)
    2009-03-15 00:26:02下载
    积分:1
  • CRP Machine_Learning
    生成随机数有中国餐厅过程和关于 Machine_Learning Stick_breaking_process。
    2022-05-23 03:01:19下载
    积分:1
  • RAD 10 c++ Builder 做的安卓摄像头扫二维码 Delphi的也放一起了
    RAD 10 c++ Builder 做的安卓摄像头扫二维码 Delphi的也放一起了 用的是ZXing 的下载了直接编译出安卓的APK放安卓里就可以试效果了罗。。^m^
    2022-08-04 02:50:10下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载