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

odd N bands Demon Lineup : N

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

  • lagrange interpolation
    lagrange interpolation
    2022-05-31 06:33:47下载
    积分:1
  • 《Fortran常用程序集-第二版》
    应用背景对于科学与工程计算方面非常非常非常有用,代码几乎囊括了科学与工程计算的各个方面的一些非常非常复杂的计算。关键技术算法包含很多方面的,对于科学与应用方面的老师,学生乃至从事科学计算方面的人员都有很大的好处
    2022-01-25 14:39:58下载
    积分:1
  • 蚁群解决车辆路径问题AS-VRP源码
    蚁群算法来解决车辆路径问题AS-VRP,编程环境是matlab,蚁群算法很好的解决了关于车辆路径问题和与之相关一类像调度问题。指派问题等 用C++编写,专门用来求解车辆路径问题
    2022-07-18 12:25:29下载
    积分:1
  • 列主元Gauss消去
    列主元Gauss消去法-out PCA Gaussian Elimination
    2022-07-02 19:44:47下载
    积分:1
  • BST
    自己当年写的一个BST算法的C程序,现在看看可以帮新人更好理解这个算法吧
    2023-02-26 23:40:03下载
    积分:1
  • NSGA2源代码
    这是nsga2的源代码,是从作者那里弄到的, 非常难得!
    2022-06-27 11:20:00下载
    积分:1
  • 拉格朗日插值函数的示例
    拉格朗日插值函数算法的示例-Lagrangian function interpolation algorithm examples
    2022-07-21 17:26:50下载
    积分:1
  • c++词分析
    使用c++ STL,对c或c++进行词法分析。 在Windows下编写的,其他平台需要改文件流 基本上能够进行正确的分析,没有进行注释符号的处理,需要的就不要下载了。                                                                                                                                                  &
    2023-01-17 00:25:05下载
    积分:1
  • 解决微分方程组/代数方程组Fortran
    解决微分方程组/代数方程组Fortran算法-This code solves a system of differential/algebraic equations of the form G(T,Y,YPRIME) = 0.
    2022-05-15 04:45:22下载
    积分:1
  • ACM竞赛的一些搜索剪枝的应用,供大家学习
    ACM竞赛的一些搜索剪枝算法的应用,供大家学习-ACM search tree
    2022-08-16 09:52:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载