11690 - pB - Transpose   

Description

Writer: jjjjj19980806       Description: pclightyear       Difficulty: ★☆☆☆☆

jjjjj doesn't like long description.

Given an m  n matrix A, please calculate the transpose of A.

Note: The is a partial judge problem. We have already handled the input and output for you. All you have to do is to implement the function "Transpose".

Input

The first line contains two integers m, n, representing the dimension of A.

The next m lines contain n integers aij, representing the indices of A.

It is guaranteed that :

  • 1 ≤ m, n ≤ 500

We have already handled the input for you.

Output

Please output the transpose of A.

We have already handled the output for you.

Sample Input  Download

Sample Output  Download

Partial Judge Code

11690.c

Partial Judge Header

11690.h

Tags




Discuss