← All problems‹ PrevNext ›Transpose a MatrixEasy#arrays#matrix· solved by 0 · time limit 2.0 sPrint the transpose of an R×CR \times CR×C matrix (rows become columns).InputRRR and CCC, then RRR rows of CCC integers.OutputCCC rows of RRR integers.Constraints1≤R,C≤1001 \le R, C \le 1001≤R,C≤100Sample 1Input2 3 1 2 3 4 5 6 Output1 4 2 5 3 6