4298: 【数组】矩阵转置(例题)

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

Description

    例5.8      输入3*3的矩阵,将其转置后输出。矩阵转置是矩阵的行列交换,如:              
        2 1 3                    2 3 1
        3 3 1    转置为:   1 3 2
        1 2 1                    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