给出2个大整数A,B,计算A*B的结果。
收起
输入
第1行:大数A 第2行:大数B (A,B的长度 <= 1000,A,B >= 0)输出
输出A * B
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static Scanner s = new Scanner(System.in);
public static void main(String args[]) throws Exception {
Scanner in = new Scanner(System.in);
BigInteger a = in.nextBigInteger();
BigInteger b = in.nextBigInteger();
System.out.println(a.multiply(b));
}
}