Least Common Multiple
Print the least common multiple of A and B.
Input: one line with two integers A and B.
Output: lcm(A, B) = A / gcd(A, B) · B.
Constraints:
- 1 ≤ A, B ≤ 109
Sample Tests
Input 1
4 6
Output 1
12
Input 2
7 13
Output 2
91
Discussion (opens after you solve — no spoilers before)
No comments yet.