1379: 转置矩阵
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:29
Solved:14
Description
输入两个整数M,接着输入一个M*M的矩阵,试着输出他的转置矩阵(转置矩阵即将第m行第n列的数字与第n行第m列的数字交换)
Input
整数M,接着输入M*M的矩阵
Output
他的转置矩阵
Sample Input Copy
3
1 2 3
4 5 6
7 8 9
Sample Output Copy
1 4 7
2 5 8
3 6 9