登录
首页 » 数据结构 » The demo program Joseph Central calculus problem, the number n should be arbitra...

The demo program Joseph Central calculus problem, the number n should be arbitra...

于 2023-07-02 发布 文件大小:1,008.00 B
0 184
下载积分: 2 下载次数: 1

代码说明:

本演示程序演算约瑟夫环问题,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-The demo program Joseph Central calculus problem, the number n should be arbitrary, we must first enter a value assigned to the initial reported that the maximum number of m, the procedure should be able to automatically save a list of the serial number of people and held out the password given to m, again as reported maximum number of such cycles, until all that far out.

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

发表评论

0 个回复

  • a example of sql database
    一个SQL数据库的小例子-a example of sql database
    2022-11-03 02:25:03下载
    积分:1
  • 插队买票
    AppWizard has created this 插队买票1 application for you.   This file contains a summary of what you will find in each of the files that make up your 插队买票1 application. 插队买票1.dsp     This file (the project file) contains information at the project level and     is used to build a single project or subproject. Other users can share the     project (.dsp) file, but they should export the makefiles locally. 插队买票1.cpp
    2022-03-02 22:02:48下载
    积分:1
  • 医学图象处理系统
    医学图象处理系统-Medical Image Processing System
    2022-01-25 14:28:55下载
    积分:1
  • 二叉树与二叉链表
    假设以如下说明的三元组 (F、C、L/R) 序列输入一棵二叉树的诸边(其中 F 表示双亲结点的标识,C 表示孩子结点标识,L/R 表示 C 为 F 的左孩子或右孩子),且在输入的三元组序列中,C 是按层次顺序出现的。设结点的标识是字符类型。F=‘^’时 C 为根结点标识,若 C 亦为‘^’,则表示输入结束。 试编写算法,由输入的三元组序列建立二叉树的二叉链表,并以中序序列输出。^AL ABL ACR BDL CEL CFR DGR FHL ^^L -Assuming the following description of the triple (F, C, L/R) sequence of a binary tree of all the input side (where F that identifies the parent node, C, said child node ID, L/R that C is F, left or right child child), and triples in the input sequence, C is the emergence of a hierarchical order. Node identity is established character types. F = " ^" C for the root identity when, if C is also a " ^" , then enter the end. Test preparation algorithm, the input sequence of triples binary build the binary tree list, and in order to sequence the output
    2022-09-25 12:40:03下载
    积分:1
  • 造一个图 用邻接矩阵存储 然后用分别普利姆算法和克努斯卡尔算法造其最小生成树...
    先构造一个图 用邻接矩阵存储 然后用分别普利姆算法和克努斯卡尔算法构造其最小生成树-First construct a map with the adjacency matrix is stored separately plym algorithm and then construct the minimum spanning tree algorithm克努斯卡尔
    2023-08-02 07:00:03下载
    积分:1
  • 建立带表头点的单链表,打印所有点的域;输入一个值,若某个点的域为该值,则在其后插入另一个新点,若无此点,则在表尾插入新点,然后打印;给一个值...
    建立带表头结点的单链表,打印所有结点的数据域;输入一个值,若某个结点的数据域为该值,则在其后插入另一个新结点,若无此结点,则在表尾插入新结点,然后打印;给一个值,删除结点的数据域是该值的所有结点,然后打印。(表生成时可用前插法或后插法)-table with the establishment of the first node of a single linked list, print all nodes of the data domain; An input value, If a node"s data fields for the values, and subsequently inserted in a new node, in the absence of such nodes, at the end of the insertion of a new form nodes, then Print; to a value of the node to delete data domain is the value of all the nodes, then Print. (Table Generation available houses or after interpolation)
    2023-01-23 20:10:04下载
    积分:1
  • VB+access+ado
    VB+access+ado
    2022-07-23 17:06:56下载
    积分:1
  • 中的八皇后问题
    数据结构中的八皇后问题-data structure of the eight Queen"s problems
    2023-03-27 07:55:03下载
    积分:1
  • Jsp考试系统
    Jsp考试系统 -Jsp Examination System
    2022-06-02 23:09:23下载
    积分:1
  • 本文章首先简要介绍了一维与二维情况下的最接近点对问题与所涉及到的解决算法.然后,把最接近点对问题延伸至三维,提出了自己的解决思想,并提供了相关伪代码,以供参考....
    本文章首先简要介绍了一维与二维情况下的最接近点对问题与所涉及到的解决算法.然后,把最接近点对问题延伸至三维,提出了自己的解决思想,并提供了相关伪代码,以供参考.请各位朋友多提建议!-err
    2023-06-26 16:35:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载