-
设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列...
设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem
- 2023-03-09 16:15:03下载
- 积分:1
-
(一) 编写一个程序LAGO7
(一) 编写一个程序LAGO7-1.CPP,实现二叉树的各种运算,并在此基础上设计一个主程序完成如下功能。
(1) 输出二叉树B;
(2) 输出二叉树B的深度;
(3) 输出H结点的左、右孩子结点值;
(4) 输出二叉树B的宽度;
(5) 输出二叉树B的结点个数;
输出二叉树B的叶子结点个数
-(A) to prepare a program LAGO7-1.CPP, to achieve a variety of binary operations, and on this basis, design a main program performs the following functions.
(1) output binary tree B
(2) The output of a binary tree B of depth
(3) The output of H nodes left and right child node value
(4) outputs a binary tree B, width
(5) output node B, the number of binary trees
(6) outputs a binary tree B, the number of leaf nodes
- 2023-02-06 07:20:04下载
- 积分:1
-
A*算法只要求产生问题的全部状态空间的部分结点及关系,就可以求解问题了,搜索效率较高。当然由于A*算法中没有回溯,因此某些情况下可能会找不到正确的解过程。...
A*算法只要求产生问题的全部状态空间的部分结点及关系,就可以求解问题了,搜索效率较高。当然由于A*算法中没有回溯,因此某些情况下可能会找不到正确的解过程。
-A* algorithm only requires a problem all part of the state space and the relationship between nodes, we can solve the problem, the search more efficient. Of course, as a result of A* algorithm is not retroactive, so some cases may be unable to find the correct solution of the process.
- 2022-01-26 07:51:35下载
- 积分:1
-
金华门禁系统数据库脚本,包括门、EL键盘照明…
金华门禁系统数据库脚本,涵盖了门禁,售饭,人力资源管理等-Jinhua Access Control System database scripts, covering doors, EL keyboard Illumination, human resource management, etc.
- 2022-02-26 11:30:07下载
- 积分:1
-
Java编写的大型购物商场源代码
Java编写的大型购物商场源代码-Java prepared by the major shopping malls source code
- 2023-04-27 22:35:03下载
- 积分:1
-
delphi 制作的电梯程序
资源描述delphi 制作的电梯程序,智能控制上下人数,停留层完全按照实际操作来,设计结构精细,适合练手.组件简单
- 2022-02-05 21:09:29下载
- 积分:1
-
c++算法
----c++算法--与--数据结构-----
----c++算法--与--数据结构-Data Structures and c++ Algorithms
- 2022-03-06 00:49:46下载
- 积分:1
-
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下:
输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵
求迷宫的一条通路:Q
当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process
- 2023-04-15 19:50:03下载
- 积分:1
-
银行定储模拟程序
银行定储模拟程序-Reserve Bank is scheduled simulation program
- 2022-03-19 22:05:44下载
- 积分:1
-
数据库连接,利用按钮一键即可,按钮特效也很是漂亮!
数据库连接,利用按钮一键即可,按钮特效也很是漂亮!-Database connection, using one button button, button effects are also very pretty!
- 2022-10-23 07:05:04下载
- 积分:1