CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称:transpose

介绍说明--下载内容来自于网络,使用问题请自行百度

北邮复试上机题目:

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com