Preparando MOJI

LCM

2000ms 262144K

Description:

Least common multiple (LCM) of two numbers is the smallest positive integer which is divisible by both of them. You are given integers a and b. Calculate their LCM.

Input:

The input contains two integers a and b (1 ≤ a, b ≤ 103), separated by a single space.

Output:

Output LCM(a, b).

Sample Input:

10 42

Sample Output:

210

Sample Input:

123 41

Sample Output:

123

Informação

Codeforces

Provedor Codeforces

Código CF188C

Tags

*specialimplementationmath

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:37:07

Relacionados

Nada ainda