返回列表 發帖
  1. import java.math.BigInteger;


  2. public class WayV {
  3.        
  4.         BigInteger x=new BigInteger("1999999999999999999999999999999999999999999999999999999999");
  5.         BigInteger y=new BigInteger("10000000000000000000000000000000000000000000001");
  6.         BigInteger i=new BigInteger("2100000000000000000000000000000000000000000000000");
  7.     BigInteger j=new BigInteger("1400000000000000000000000000000000000000000000000");
  8.     long a=1999999999999999999l;
  9.     long b=1000000000000000001l;
  10.        
  11.        
  12.         WayV()
  13.         {
  14.                 System.out.println(a+b);
  15.                 System.out.println(x.add(y));
  16.                 System.out.println(x.subtract(y));
  17.                 System.out.println(x.multiply(BigInteger.valueOf(2)));
  18.                 System.out.println(x.divide(y));
  19.                 System.out.println(x.remainder(y));
  20.                 System.out.println(i.gcd(j));
  21.                 System.out.println(j.pow(2));
  22.         }

  23.         public static void main(String[] args) {
  24.                 new WayV();
  25.         }

  26. }
複製代碼

TOP

返回列表