📅  最后修改于: 2022-03-11 14:52:41.645000             🧑  作者: Mango
import static java.math.BigInteger.valueOf;
import java.math.BigInteger;
public class GCD {
public static int compute(int x, int y) {
return valueOf(x).gcd(valueOf(y)).intValue();
}
}
Code language: Java (java)