11687 - 231001_11/23_practice10-1
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
-
Input two positive integers n, m and a matrix A, where A is an n×m matrix with integer elements. Print the transpose of matrix A: AT.
-
AT: The i th row, j th column element of AT is the j th row, i th column element of A: [AT]ij=Aji
Input
-
Input: Two positive integers n, m and a matrix A
-
Input format: See the sample I/O
Output
-
Output: The transpose of A.
-
Output format:
-
There is a space after each number, including the last number in each row, and change a new line after each n elements.
-
Change a new line at the end.
Tags