| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12933 | Matrix Transpose |
|
| 12942 | Least Common Multiple |
|
Description
Given a matrix A (you can consider it as a 2-D array), print out transpose of A.
Input
The first contains two integers, indicating the numbers of rows and columns separately. The following line is the matrix.
The number of rows and columns of the matrix are no more than 1000.
Every elements in the matrix is between -100 and 100.
Output
Output the transposed matrix, separated by a space. At the end of each row, you should output a newline character rather than a space.