题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 import java.util.*; 2 import java.math.*; 3 4 public class Main { 5 6 public static void main(String args[]){ 7 Scanner cin = new Scanner(System.in); 8 int T = cin.nextInt(); 9 int cas = 0; 10 while (T != 0){ 11 T--; 12 String str1 = cin.next(), str2 = cin.next(); 13 BigInteger a = new BigInteger(str1), b = new BigInteger(str2); 14 ++cas; 15 System.out.println("Case "+cas+":"); 16 17 System.out.println(a + " + "+b+" = "+a.add(b)); 18 if (T!=0){ 19 System.out.println(); 20 } 21 } 22 23 } 24 }