OJ-Problems-Source/QUSTOJ/1023.java

12 lines
378 B
Java
Raw Normal View History

2016-05-01 18:59:00 +08:00
import java.io.*;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
BigInteger a=sc.nextBigInteger();
BigInteger b=sc.nextBigInteger();
System.out.println(a.multiply(b).divide(a.gcd(b)));
}
}