LearnPy Hub
← Arena
EasyRating 800

Transpose

Print the transpose of the matrix.

Input

r c, then r lines.

Output

c lines.

Sample 1

Input
2 3
1 2 3
4 5 6
Output
1 4
2 5
3 6

Sample 2

Input
1 1
9
Output
9
solution.py
Output appears here
Transpose · Python Arena problem · LearnPy Hub