java还是有好处的,有封装就是任性,不符来辩
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = in.nextInt(); for(int i = 1;i<=num;i++){ BigInteger a = in.nextBigInteger(); BigInteger b = in.nextBigInteger(); System.out.println("Case "+i+":"); System.out.println(a+" + "+b+" = "+a.add(b)); if(i != num) System.out.println(); } } }
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------