标签:blog http ar java for sp 2014 c log
http://acm.hdu.edu.cn/showproblem.php?pid=1002
PE 因为最后一个CASE不需要输出空行
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner in = new Scanner(System.in); int ncase; ncase = in.nextInt(); for(int i=1;i<=ncase;i++){ BigInteger a= in.nextBigInteger(); BigInteger b= in.nextBigInteger(); System.out.println("Case" + " " + i + ":"); System.out.println(a + " + " + b + " = " + a.add(b)); if(i<ncase)System.out.println(); } } }
标签:blog http ar java for sp 2014 c log
原文地址:http://blog.csdn.net/u011026968/article/details/39649757