import java.math.BigInteger;
import java.util.Scanner;
/**
* Created by mac on 2018/11/30.
*/
public class Main {
public static void main(String[]args){
Scanner input = new Scanner(System.in);
//java中的大数字用BigInteger表示
BigInteger a,b;
int n = input.nextInt();
for (int i = 1; i <= n;i++){
System.out.println("Case " + i +":");
a = input.nextBigInteger();
b = input.nextBigInteger();
//大数字的相加用add函数;
System.out.println(a + " + " + b +" = " + a.add(b));
//控制最后一个输出不换行
if (i < n)
System.out.println();
}
input.close();
}
}
网友评论