Advertisement
koushik105

10055 for Tori

Dec 23rd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.*;
  2. public class Main {
  3.  
  4.     /**
  5.      * @param args the command line arguments
  6.      */
  7.     public static void main(String[] args) {
  8.         // TODO code application logic here
  9.         Scanner in = new Scanner(System.in);
  10.        
  11.         while(in.hasNextLong())
  12.         {
  13.             long a = in.nextLong();
  14.             long b = in.nextLong();
  15.  
  16.             System.out.println(Math.abs(a-b));
  17.            
  18.         }  
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement