题目链接:http://poj.org/problem?id=2389
题目大意:
大数相乘。
解题思路:
java BigInteger类解决 o.0
AC Code:
import java.math.BigInteger;
import java.util.Scanner;
public class Main { public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
BigInteger a = sc.nextBigInteger();
BigInteger b = sc.nextBigInteger();
System.out.println(a.multiply(b));
}
}
}