2134 - I2P(I)2020_Hu_hw4 Scoreboard

Time

2020/10/19 17:20:00 2020/10/26 18:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12933 Matrix Transpose
12934 Rotate Numbers
12935 Greatest Common Divisor

12933 - Matrix Transpose   

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




12934 - Rotate Numbers   

Description

Given a large integer, please rotate the whole number by 180and 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.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12935 - Greatest Common Divisor   

Description

Given two integers, calculate their greatest common divisor.

Input

The input contains two integers between 2 and 10000.

Output

Output the greatest common divisor of the input pair, follow by a newline.

Sample Input  Download

Sample Output  Download

Tags




Discuss