mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1023.java
This commit is contained in:
parent
1ad75c6184
commit
98e17d592d
11
QUSTOJ/1023.java
Normal file
11
QUSTOJ/1023.java
Normal 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)));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user