-
odd N bands Demon Lineup : N
奇数N 阶魔方阵问题: 奇数N 阶魔方阵的构造规则如下: 1、在第一行的正中间填入1; 2、如果左上角能够移动,则往左上角填入后继的数;如果左上角不 能移动,则顺移到该列最下方左边的一列中最靠近该列的位置; 3、如果左上角不能移动,同时在该列位置的最下方左边最靠近的位 置处也不能填入数,则往该位置的上一行的最右边的位置处填入 后继数; 4、每次尽可能地往左上角填数,如果发现左上角已经填满了数,则 从当前填的数的位置下方填上后继数。 要求: 无。 输入: 用户从键盘任意输入一个正奇数。 输出: 打印出该魔方阵。-odd N bands Demon Lineup : N-odd magic Lineup Construction Rules are as follows : 1, the first line is the middle of a preference; Two, if the upper left corner to Mobile, the successor to fill in the upper left; If the upper left corner, unable to move, with the move out of the bottom of the left one of the closest out of position; three, if the upper left corner, unable to move, while in the position shown in the bottom left nearest location Department has not entered a few, to the position of the party on the right side of the positions filled successor; 4, each possible to fill the upper left corner, if fill the upper left corner, has found a few, from the current fill several positions to fill in the bottom subsequent few. Requ
- 2022-01-21 19:39:47下载
- 积分:1
-
实数编码模拟退火算法
MATLAB中的模拟退火算法
- 2022-08-13 19:36:43下载
- 积分:1
-
八路抢答器
library IEEE; --库说明
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
entity bldzqdqwcb is
Port ( clr: in STD_LOGIC; ----qing 0
clk,button0: in STD_LOGIC; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-25 18:55:58下载
- 积分:1
-
物联网智能信息处
物联网智能信息处理算法的输入要从文件读取,具有通用性假设min_sup_count=2,在如下交易数据集上,验证算法结果的正确性
- 2022-08-16 06:40:29下载
- 积分:1
-
是自己在ECPLISE下做的一个简单的排序程序,有兴趣的可以看下....
是自己在ECPLISE下做的一个简单的排序程序,有兴趣的可以看下.-in ECPLISE is done with the sort of a simple procedure that can be interested in a glance.
- 2023-01-09 01:50:04下载
- 积分:1
-
一个用Basic实现的B
一个用Basic实现的B-Tree算法- The B-Tree algorithm which realizes with Basic
- 2022-01-23 11:15:55下载
- 积分:1
-
matlab实现鱼群算法
为了改进基本人工鱼群算法的寻优效果,提出加入生命周期和生命指数的方法,在此用matlab语言实现,实验结果较优
- 2022-07-06 23:43:37下载
- 积分:1
-
51数码管时钟
资源描述
自己编写的 简单的51 数码管时钟,用中断实现修改时间,程序比较简单 可能有错误的地方,希望大家支出不足
实验对象:51hei单片机学习开发板
* 单 片 机:AT89S52或STC89C52 闹钟时间:7:10分(程序自定义)
*使用定时器方式,数码管显示24小时“00-00-00”(增加中断进入对时功能
P1为按键,P2为段选,P0为位选,
- 2022-04-13 10:15:03下载
- 积分:1
-
TC35板子上单片机短信控制继电器源程序
TC35板子将单片机与GSM短信模块级联在一起 此代码详细描述了怎样通过手机向GSM模块发短信以通过单片机控制继电器
- 2022-12-08 12:00:08下载
- 积分:1
-
用matlab编写的梁几何大变形程序包括静力和动力程序
用matlab编写的梁几何大变形程序包括静力和动力程序-using Matlab beam geometry prepared by the large deformation process includes static and dynamic process
- 2023-07-24 04:45:03下载
- 积分:1