Java计算大整数

import java.util.*;
import java.math.*;

public class Main {

  public static void main(String[] args) {

    Scanner in = new Scanner(System.in);

    BigInteger a = new BigInteger(in.next());
    BigInteger b = new BigInteger(in.next());

    System.out.println(a.multiply(b));
  }

}

posted @ 2018-10-14 12:48  a最简单  阅读(996)  评论(0编辑  收藏  举报