文件名称:xhjz
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:586byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
打印如下形式的矩阵;
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.