HDU1002:A + B Problem II
大数整数和问题:
import java.util.Scanner;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int T = in.nextInt();
int count = 1;
while (T != 0) {
BigInteger a = in.nextBigInteger();
BigInteger b = in.nextBigInteger();
System.out.println("Case" + " " + (count++) + ":");
System.out.println(a + " + " + b + " = " + a.add(b));
if (T != 1) {
System.out.println("");
}
T--;
}
}
}