1828: 矩阵顺时针旋转90度

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:2

Description

给定一个N*N的二维数组,顺时针旋转90度,输出新、旧两个方阵。

Sample Input Copy

4
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16

Sample Output Copy

13 9 5 1
14 10 6 2
15 11 7 3
16 12 8 4

1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16