妈妈再也不用担心我的大数了~~
import java.io.*;
import java.util.*;
import java.math.*;
public class Main
{
public static void main(String[] args)
{
int i=1,n;
BigDecimal a,b;
a=new BigDecimal("0");
b=new BigDecimal("0");
Scanner in=new Scanner(System.in);
n = in.nextInt();
while(in.hasNext())
{
if(i!=1)
System.out.println();
a=in.nextBigDecimal();
b=in.nextBigDecimal();
System.out.println("Case "+i+":");
i++;
System.out.println(a+" + "+b+" = "+a.add(b).stripTrailingZeros().toPlainString());
n--;
if(n==0)
break;
}
}
}