Uva 11448 - Who said crisis?

import java.util.*;
import java.math.*;

class Main
{
    public static void main (String[] args)
    {
        Scanner in = new Scanner(System.in);
       
        int t;
        t = in.nextInt();
        for(int i=0;i<t;i++)
        {
            BigInteger x,y;
            x = in.nextBigInteger();
            y = in.nextBigInteger();
            System.out.println(x.subtract(y));
        }
    }
}

Comments

Popular posts from this blog

SPOJ-CMG - Collecting Mango

LightOJ 1009 - Back to Underworld

LeetCode Palindrome Number