摘要:
import java.math.BigInteger;public class Rational extends Number implements Comparable { private BigInteger numerator;// 分子 private BigInteger denomin... 阅读全文
posted @ 2015-12-06 17:37
第壹时间
阅读(882)
评论(0)
推荐(0)
摘要:
public class Rational extends Number implements Comparable { private long numerator;// 分子 private long denominator;// 分母 /** * @param args */ public... 阅读全文
posted @ 2015-12-06 17:36
第壹时间
阅读(780)
评论(0)
推荐(0)
摘要:
1、BigInteger(byte[] val)这个构造函数用于转换一个字节数组包含BigInteger的二进制补码,以二进制表示成一个BigInteger。(用字节数组中值的ASCII码构造BigInteger)2、BigInteger(int signum, byte[] magnitude)此... 阅读全文
posted @ 2015-12-06 17:34
第壹时间
阅读(5291)
评论(0)
推荐(1)
摘要:
public static int gcd(int a, int b) { int n1 = Math.abs(a); int n2 = Math.abs(b); int remainder = n1 % n2; while (remainder > 0) { n1 = n2; n2 ... 阅读全文
posted @ 2015-12-06 10:23
第壹时间
阅读(220)
评论(0)
推荐(0)

浙公网安备 33010602011771号