-
-
Save keefo/bd1f02045536f162412dbd765a726fc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Kattis { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNext()) { | |
long X = sc.nextLong(); | |
long Y = sc.nextLong(); | |
if (X > Y) { | |
System.out.println(Math.abs(X - Y)); | |
} else { | |
System.out.println(Math.abs(X - Y)); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment