大数乘法(hdu 1402)

模板题,模仿前一篇写的


import java.math.BigInteger;
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner s = new Scanner(System.in);
        while(s.hasNext())
        {
            BigInteger ans= new BigInteger("1");
            for(int i=1; i<=2; i++)
                ans=ans.multiply(s.nextBigInteger());
            System.out.println(ans);
        }
    }
}

猜你喜欢

转载自blog.csdn.net/qq_41061455/article/details/80316400
今日推荐