2141 - I2P(I)2020_Hu_lab4 Scoreboard

Time

2020/10/26 18:30:00 2020/10/26 20:40:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12933 Matrix Transpose
12942 Least Common Multiple

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




12942 - Least Common Multiple   

Description

Given two integers, calculate their least common multiple.

 

Input

The input contains two integers between 2 and 10000.

Output

Output the least commom multiple of the input pair, followed by a newline.

Sample Input  Download

Sample Output  Download

Tags




Discuss