HDU1002:大数加法,PE了N次

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

public class Main
{
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);
        int T;
        T=cin.nextInt();
        for(int z=1;z<=T;z++)
        {
            if(z!=1) System.out.println();
            BigInteger a,b;
            a=cin.nextBigInteger();
            b=cin.nextBigInteger();
            System.out.println("Case "+z+":");
            System.out.println(a+" + "+b+" = "+a.add(b));
            
        }
        cin.close();
    }

}
View Code

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2021-06-29
  • 2022-12-23
  • 2022-01-09
  • 2021-12-10
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-08-19
  • 2021-08-18
  • 2022-02-09
  • 2021-12-24
  • 2022-12-23
  • 2021-06-26
  • 2021-08-15
相关资源
相似解决方案