文件名称:transpose
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:379.77kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
北邮复试上机题目:
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/
Debug/Haffman.obj
Debug/transpose.exe
Debug/transpose.ilk
Debug/transpose.obj
Debug/transpose.pch
Debug/transpose.pdb
Debug/vc60.idb
Debug/vc60.pdb
transpose.cpp
transpose.dsp
transpose.plg
Debug/Haffman.obj
Debug/transpose.exe
Debug/transpose.ilk
Debug/transpose.obj
Debug/transpose.pch
Debug/transpose.pdb
Debug/vc60.idb
Debug/vc60.pdb
transpose.cpp
transpose.dsp
transpose.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.