Skip to content

Instantly share code, notes, and snippets.

@avijitagarwal
Created February 20, 2019 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avijitagarwal/073127f8b27fcb19c5da265ebd92dbb7 to your computer and use it in GitHub Desktop.
Save avijitagarwal/073127f8b27fcb19c5da265ebd92dbb7 to your computer and use it in GitHub Desktop.
import java.io.*;
import java.util.*;
class CLIPLX
{
public static void main(String args[])throws IOException
{
Scanner in=new Scanner(System.in);
int t=in.nextInt();
while(t-->0)
{
int x=in.nextInt();
int y=in.nextInt();
System.out.println((int)Math.max(0,x-y));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment