高精度乘法。
以下是我的代碼:
import java.util.Scanner;
import java.math.BigInteger;
public class Main
{
public static void main(String[] args)
{
Scanner cin=new Scanner(System.in);
while(cin.hasNext())
{
BigInteger a=cin.nextBigInteger(),b=cin.nextBigInteger();
System.out.println(a.multiply(b));
}
}
}
posted on 2011-05-19 18:34
lee1r 閱讀(309)
評論(0) 編輯 收藏 引用 所屬分類:
題目分類:基礎/模擬