import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); int k=1; for(int i=0; i<t; i++) { BigInteger a = scanner.nextBigInteger(); BigInteger b = scanner.nextBigInteger(); System.out.println("Case #"+ k++ +":"); System.out.println(a.subtract(b)); } } } |
Double click to view unformatted code.