300995: CF188C. LCM
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
C. LCMtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
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.
InputThe input contains two integers a and b (1 ≤ a, b ≤ 103), separated by a single space.
OutputOutput LCM(a, b).
ExamplesInput10 42Output
210Input
123 41Output
123