#Z15208. 矩阵转置
矩阵转置
Description
Given an n-row m-column matrix A, output its transpose A^T^.
Input Format
The first line contains two integers n and m, representing the number of rows and columns of matrix A (1 ≤ n ≤ 100, 1 ≤ m ≤ 100).
The next n lines each contain m integers, representing the elements of matrix A. Adjacent integers are separated by a single space, and each element is between 1 and 1000.
Output Format
Output m lines, each containing n integers, which represent the transpose of matrix A. Adjacent integers should be separated by a single space.
3 3
1 2 3
4 5 6
7 8 9
1 4 7
2 5 8
3 6 9