| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12933 | Matrix Transpose |
|
| 12934 | Rotate Numbers |
|
| 12935 | Greatest Common Divisor |
|
Description
Given a matrix A (you can consider it as a 2-D array), print out transpose of A.
Input
The first contains two integers, indicating the numbers of rows and columns separately. The following line is the matrix.
The number of rows and columns of the matrix are no more than 1000.
Every elements in the matrix is between -100 and 100.
Output
Output the transposed matrix, separated by a space. At the end of each row, you should output a newline character rather than a space.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Given a large integer, please rotate the whole number by 180o and print out the result.
For example:
However, sometimes after you rotate the number, it becomes meaningless, for example:
Besides, after you rotate the number, if there are some zeros in the front, do not print them out, for example:
Input
The input contains an integer N, which N is no more than 100 digits.
Output
Output the 180 degree rotated number, if the rotated number is meaningless, output "No". Please add a newline at the end of your answer.