1403: 矩阵转置

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

Description

输入3*3的矩阵,将其转置后输出。矩阵转置是矩阵的行列交换,如:              
2 1 3 
3 3 1  
1 2 1 
转置为:
2 3 1 
1 3 2
3 1 1

Input

3*3的矩阵:共三行,每行3个整数。

Output

    三行,每行三个整数,用空格分隔,表示转置后的矩阵。
    (注意:需要修改教材程序中的输出格式语句)

Sample Input Copy

2 1 3
3 3 1
1 2 1

Sample Output Copy

2 3 1
1 3 2
3 1 1

Source/Category