Create 1023.java

pull/11/head
KiritoTRw 2016-05-01 18:59:00 +08:00
parent 1ad75c6184
commit 98e17d592d
1 changed files with 11 additions and 0 deletions

11
QUSTOJ/1023.java Normal file
View File

@ -0,0 +1,11 @@
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)));
}
}