View Code of Problem 3689

import java.math.BigInteger;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int x = s.nextInt();
		for(int i= 1;i<=x;i++){
			BigInteger a =s.nextBigInteger();
			BigInteger b =s.nextBigInteger();
			System.out.println("Case #"+i+"");
			System.out.println(a.subtract(b));
		}
			
	}

}

Double click to view unformatted code.


Back to problem 3689