标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 241566 Accepted Submission(s):
46567
import java.util.Scanner; import java.math.BigInteger; public class Main { final int maxn=1000100; public static void main(String[] args){ Scanner in=new Scanner(System.in); int T; T=in.nextInt(); for(int i=1;i<=T;i++){ BigInteger a,b,c; a=in.nextBigInteger(); b=in.nextBigInteger(); c=a.add(b); System.out.println("Case "+i+":"); System.out.println(a.toString()+" + "+b.toString()+" = "+c.toString()); if(i<T) System.out.println(); } } }
标签:
原文地址:http://www.cnblogs.com/--560/p/4339871.html