文件名称:transpose
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 380kb
- 下载次数:
- 0次
- 提 供 者:
- Jeni*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
北邮复试上机题目:
Descr iption
子矩阵旋转操作。
Input
前5行每行5个整数,表示一个5*5阶的矩阵。
第6行为4个整数a b c d,根据这4个整数进行相应的旋转操作。
Output
若a b分别为1 2,则将原矩阵中以第c行第d列元素为左上角的2*2阶子矩阵顺时钟旋转90度后输出原矩阵。
若a b分别为1 3,则将原矩阵中以第c行第d列元素为左上角的3*3阶子矩阵顺时钟旋转90度后输出原矩阵。
若a b分别为2 2,则将原矩阵中以第c行第d列元素为左上角的2*2阶子矩阵逆时钟旋转90度后输出原矩阵。
若a b分别为2 3,则将原矩阵中以第c行第d列元素为左上角的3*3阶子矩阵顺时钟旋转90度后输出原矩阵。
Sample Input
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
1 3 1 1
Sample Output
11 6 1 4 5
12 7 2 9 10
13 8 3 14 15
16 17 18 19 20
21 22 23 24 25-
Descr iption
Sub-matrix of the rotation operation.
Input
The first five lines of each row of five integers, indicating that the order of a 5* 5 matrix.
6 behavior of four integer abcd, according to the four integer corresponding rotation operation.
Output
If ab 12, column c line d is the original matrix elements of order 2* 2 submatrix of the upper-left corner clockwise rotation of 90 degrees after the output of the original matrix.
Ab, respectively, 13, is the original matrix c line d column elements for the upper-left corner of the 3* 3 order sub-matrix clockwise 90 degrees, the output of the original matrix.
If ab were 22, column c line d is the original matrix elements for the upper left corner 2* 2 order sub-matrix counterclockwise rotation of 90 degrees, the output of the original matrix.
Ab, respectively, 23, is the original matrix c line d column elements for the upper-left corner of the 3* 3 order sub-matrix clockwise 90 degrees, the output of the original matrix.
S
Descr iption
子矩阵旋转操作。
Input
前5行每行5个整数,表示一个5*5阶的矩阵。
第6行为4个整数a b c d,根据这4个整数进行相应的旋转操作。
Output
若a b分别为1 2,则将原矩阵中以第c行第d列元素为左上角的2*2阶子矩阵顺时钟旋转90度后输出原矩阵。
若a b分别为1 3,则将原矩阵中以第c行第d列元素为左上角的3*3阶子矩阵顺时钟旋转90度后输出原矩阵。
若a b分别为2 2,则将原矩阵中以第c行第d列元素为左上角的2*2阶子矩阵逆时钟旋转90度后输出原矩阵。
若a b分别为2 3,则将原矩阵中以第c行第d列元素为左上角的3*3阶子矩阵顺时钟旋转90度后输出原矩阵。
Sample Input
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
1 3 1 1
Sample Output
11 6 1 4 5
12 7 2 9 10
13 8 3 14 15
16 17 18 19 20
21 22 23 24 25-
Descr iption
Sub-matrix of the rotation operation.
Input
The first five lines of each row of five integers, indicating that the order of a 5* 5 matrix.
6 behavior of four integer abcd, according to the four integer corresponding rotation operation.
Output
If ab 12, column c line d is the original matrix elements of order 2* 2 submatrix of the upper-left corner clockwise rotation of 90 degrees after the output of the original matrix.
Ab, respectively, 13, is the original matrix c line d column elements for the upper-left corner of the 3* 3 order sub-matrix clockwise 90 degrees, the output of the original matrix.
If ab were 22, column c line d is the original matrix elements for the upper left corner 2* 2 order sub-matrix counterclockwise rotation of 90 degrees, the output of the original matrix.
Ab, respectively, 23, is the original matrix c line d column elements for the upper-left corner of the 3* 3 order sub-matrix clockwise 90 degrees, the output of the original matrix.
S
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Debug
.....\Haffman.obj
.....\transpose.exe
.....\transpose.ilk
.....\transpose.obj
.....\transpose.pch
.....\transpose.pdb
.....\vc60.idb
.....\vc60.pdb
transpose.cpp
transpose.dsp
transpose.plg
.....\Haffman.obj
.....\transpose.exe
.....\transpose.ilk
.....\transpose.obj
.....\transpose.pch
.....\transpose.pdb
.....\vc60.idb
.....\vc60.pdb
transpose.cpp
transpose.dsp
transpose.plg