hdu 1002(java大数)

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

public class Main
{
public static void main(String args[])
{
Scanner reader = new Scanner(System.in);
int t, cas;
cas = 0;
t = reader.nextInt();
while ((t--) != 0)
{
BigInteger a, b, c;
a = reader.nextBigInteger();
b = reader.nextBigInteger();
c = a.add(b);
System.out.println("Case " + (++cas) + ":");
System.out.println(a + " + " + b + " = " + c);
if (t != 0)
{
System.out.println("");
}
}
}
}

 

你可能感兴趣的:(java)