登录
首页 » 算法 » odd N bands Demon Lineup : N

odd N bands Demon Lineup : N

于 2022-01-21 发布 文件大小:6.14 kB
0 215
下载积分: 2 下载次数: 1

代码说明:

奇数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

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

发表评论

0 个回复

  • Real
    实数编码遗传算法程序 这是第三部分,可用于模型参数辨识,也有其它的用途-Real-coded genetic algorithm This is the third part of the procedure can be used for model parameter identification, there are other uses
    2022-06-29 07:29:54下载
    积分:1
  • C++程序实现的各种随机数的生成程序。
    C++程序实现的各种随机数的生成程序。-C program of random number generation procedures.
    2022-11-26 10:00:03下载
    积分:1
  • 曼彻斯特编解码 Xilinx提供 Verilog代码manchester_verilog
    曼彻斯特编解码 Xilinx提供 Verilog代曼曼彻斯特编解码 Xilinx提供 Verilog代码manchester_verilog彻斯特编解码 Xilinx提供 Verilog代码manchester_verilog码manchester_verilog
    2023-03-26 14:35:03下载
    积分:1
  • QPSK调制解调算法FPGA实现代码
    该算法实现了QPSK调制解调,载波同步算法采用costas环,位定时采用Gardner算法
    2023-04-22 23:35:05下载
    积分:1
  • OPENTLD C++ source code
    TLD is an algorithm for tracking of unknown objects in unconstrained video streams. The object of interest is defined by a bounding box in a single frame. TLD simultaneously tracks the object, learns its appearance and detects it whenever it appears in the video. You are allowed to use TLD under the terms of the GPL version 3.0. It means that any distributed project that includes or links any portion of TLD source code has to be released with the source code under the GPL version 3.0 license or later. The details of the license can be found in file LICENSE. If you wish to use this code or any of its part for com
    2022-06-17 10:16:04下载
    积分:1
  • 使用分布傅立叶法计算非线性薛定谔方程。可以得到光纤非线性传输特性。...
    使用分布傅立叶法计算非线性薛定谔方程。可以得到光纤非线性传输特性。-Fourier method using the distribution of nonlinear Schr枚dinger equation. Can be non-linear optical transmission characteristics.
    2023-07-18 05:25:02下载
    积分:1
  • vc实现fir滤波器 wav滤波
    应用背景vc6.0环境下即可使用,c++语言,是数字信号处理及实验内容中的重要实验,内容比较全,兼容性好。关键技术实现fir滤波器,支持多种窗口,可以模拟产生波形,进行滤波,也可以直接读取wav文件进行滤波,还可以对输入信号和输出信号进行fft分析。
    2022-09-21 14:15:03下载
    积分:1
  • 基于spwm波的stm32细分电机控制
    应用背景步进电机控制,步进电机存在低频振荡问题,利用细分技术可以改善步进电机的低频振荡,细分技术的实现通过spwm波实现关键技术基于spwm波的步进电机控制,实现最大128细分,可实现2的N次方任意细分,spwm通过查表生成。利用stm32定时器产生4路pwm波控制两相步进电机
    2023-02-03 09:45:08下载
    积分:1
  • RSA 加密算法
    RSA 加密算法源程序代码RSA算法原程序及详细注释
    2022-05-29 10:31:11下载
    积分:1
  • 填充矩阵(从外向内顺序填充自然数)
    填充矩阵(从外向内顺序填充自然数)-filled matrix (from the outside in order to fill natural number)
    2022-11-16 16:05:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载