文件名称:xhjz
介绍说明--下载内容均来自于网络,请自行研究使用
打印如下形式的矩阵;
n=5:
1 2 9 10 25
4 3 8 11 24
5 6 7 12 23
16 15 14 13 22
17 18 19 20 21
n=6:
1 2 9 10 25 26
4 3 8 11 24 27
5 6 7 12 23 28
16 15 14 13 22 29
17 18 19 20 21 30
36 35 34 33 32 31
看看1,2,3,4,5,6,7的序列。则可以看出,他们的排列几乎是一个回形。-Print the following form of matrix n = 5: 1 2 9 10 25 4 3 8 11 24 5 6 7 12 23 16 15 14 13 22 17 18 19 20 21 n = 6: 1 2 9 10 25 26 4 3 8 11 24 27 5 6 7 12 23 28 16 15 14 13 22 29 17 18 19 20 21 30 36 35 34 33 32 31 look at the sequence 1,2,3,4,5,6,7. You can see, they are arranged in almost a return to form.
n=5:
1 2 9 10 25
4 3 8 11 24
5 6 7 12 23
16 15 14 13 22
17 18 19 20 21
n=6:
1 2 9 10 25 26
4 3 8 11 24 27
5 6 7 12 23 28
16 15 14 13 22 29
17 18 19 20 21 30
36 35 34 33 32 31
看看1,2,3,4,5,6,7的序列。则可以看出,他们的排列几乎是一个回形。-Print the following form of matrix n = 5: 1 2 9 10 25 4 3 8 11 24 5 6 7 12 23 16 15 14 13 22 17 18 19 20 21 n = 6: 1 2 9 10 25 26 4 3 8 11 24 27 5 6 7 12 23 28 16 15 14 13 22 29 17 18 19 20 21 30 36 35 34 33 32 31 look at the sequence 1,2,3,4,5,6,7. You can see, they are arranged in almost a return to form.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
巡回矩阵.cpp