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
Output appears herer c, then r lines.
c lines.
2 3 1 2 3 4 5 6
1 4 2 5 3 6
1 1 9
9
Output appears here