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

odd N bands Demon Lineup : N

于 2022-01-21 发布 文件大小:6.14 kB
0 174
下载积分: 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 个回复

  • 圆的bresenham的实现
    圆的bresenham算法的实现-round of the algorithm to achieve bresenham
    2022-07-24 17:16:20下载
    积分:1
  • 空心数字梯形
    输入行数 n 和首数字字符,在屏幕上输出由数字围起的高和下底宽度均 n 的空心梯形。 要求:输出的数字是循环的,即输出数字 9 后再输出的数字是 0。输入:  行数n 和首字符输出:    空心梯形例:输入:5 5输出:5 6 7 8 9 0 1 0 9 8 7 6 5 6 6 7 7 8 8 9 0 1 0 9
    2023-02-21 05:30:04下载
    积分:1
  • 科学与工程数值vcjj
    源码包含许多工程常用数值算法,可用于vc编程研究,具有很强的使用价值。
    2023-05-12 08:10:03下载
    积分:1
  • 利用 ElGamal 加密
    ElGamal 是一种加密方法。执行 El Gamal 此源代码。我使用编程语言 PHP。
    2023-08-01 11:15:04下载
    积分:1
  • 一个程序来寻找频繁项集(关闭和最大)与Eclat
    A program to find frequent itemsets (also closed and maximal) with the eclat algorithm ,which carries out a depth first search on the subset lattice and determines the support of itemsets by intersecting transaction lists. -A program to find frequent itemsets (also c losed and maximal) with the eclat algorithm, which carries out a depth first search on the sub set lattice and determines the support of items ets by intersecting transaction lists.
    2022-02-20 07:32:43下载
    积分:1
  • Visual.C_#.2010从入门到精通-中文版章节课后源码
    此源码为Visual.C_#.2010从入门到精通配套的章节代码,适合初学者跟着课本完成C#的学习
    2022-09-15 21:45:03下载
    积分:1
  • 该程序用来解方程组的,非线性的和线性的,带有参数的方程组
    该程序用来解方程组的,非线性的和线性的,带有参数的方程组-The program group for the solution of equations, non-linear and linear equations with parameters
    2022-11-10 18:50:03下载
    积分:1
  • 二维TE波的ADI-FDTD方的程序
    这个是用ADI-FDTD的方法计算二维TE波的源代码。
    2023-08-16 03:25:03下载
    积分:1
  • prosecutors iteration of linear equations
    sor迭代求解线性方程组-prosecutors iteration of linear equations
    2022-03-07 17:12:15下载
    积分:1
  • SURF的matlab代码
    SURF用于图像的匹配,将64维的特征点降维至32维,比SIFT具有更强的实时性。
    2022-02-09 19:14:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载