import java.math.BigInteger;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int i = 0; i < t; i++) {
if (i>0) {
System.out.println();
}
BigInteger A = sc.nextBigInteger();
BigInteger B = sc.nextBigInteger();
System.out.println("Case "+(i+1)+":");
System.out.println(A+" + "+B+" = "+A.add(B));
}
}
}
HDOJ 1002 A + B Problem II(大数)
最新推荐文章于 2024-09-01 15:30:33 发布