http://acm.hdu.edu.cn/showproblem.php?pid=1002
大整数加法 :
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 import java.util.*; 2 import java.math.*; 3 public class Main{ 4 5 public static void main(String args[]){ 6 7 Scanner cin = new Scanner(System.in) ; 8 int T = cin.nextInt() ; 9 int cas = 0 ; 10 while(T != 0){ 11 T-- ; 12 // BigInteger sum = new BigInteger("0") ; 13 String str1 = cin.next(),str2 = cin.next(); 14 BigInteger a = new BigInteger(str1) ,b = new BigInteger(str2) ; 15 ++cas ; 16 System.out.println("Case "+cas+":"); 17 18 19 System.out.println(a+" + "+b +" = "+a.add(b)) ; 20 21 if(T != 0) System.out.println() ; 22 23 24 25 } 26 27 } 28 29 }