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));
}
}
}
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
Post a Comment