added native-image plugin
This commit is contained in:
@@ -4,7 +4,6 @@ import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Objects;
|
||||
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class BigIntegerExt {
|
||||
@@ -29,21 +28,6 @@ public class BigIntegerExt {
|
||||
return a;
|
||||
}
|
||||
|
||||
// static BigInteger gcd(BigInteger n1, BigInteger n2) {
|
||||
// BigInteger remainder;
|
||||
// BigInteger result;
|
||||
// while (true) {
|
||||
// remainder = n1.mod(n2);
|
||||
// result = n2;
|
||||
// if (BigInteger.ZERO.equals(remainder)) break;
|
||||
// else {
|
||||
// n1 = n2;
|
||||
// n2 = remainder;
|
||||
// }
|
||||
// }
|
||||
// return result;
|
||||
// }
|
||||
|
||||
public static BigInteger mcm(BigInteger n1, BigInteger n2) {
|
||||
return n1.multiply(n2).divide(gcd(n1, n2));
|
||||
}
|
||||
|
@@ -4,7 +4,6 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.Random;
|
||||
import java.util.function.IntFunction;
|
||||
import java.util.stream.IntStream;
|
||||
|
@@ -9,9 +9,10 @@ import org.junit.jupiter.params.provider.ArgumentsProvider;
|
||||
import org.junit.jupiter.params.provider.ArgumentsSource;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import static java.math.BigInteger.valueOf;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static java.math.BigInteger.valueOf;
|
||||
|
||||
public class RationalTest {
|
||||
|
||||
private enum Operation {
|
||||
|
Reference in New Issue
Block a user