资 源 简 介
魔方阵,古代又称“纵横图”,是指
组成元素为自然数1、2…n 的平方的n×n
的方阵,其中每个元素值都不相等,且每
行、每列以及主、副对角线上各n 个元素
之和都相等。编写程序输入魔方阵( n 为
奇数,n<25)。-Magic square, the ancient, also known as " China plans" refers to the number of elements in a natural square 1,2 ... n the n × n square, which is not equal to the value of each element and each row, each column, as well as the main , Vice-diagonal elements of the n and are equal. Programming input magic square (n is odd, n < 25).