Based in Honolulu, HI, 3leet5u is the software sketchbook of Tristan Madden.

A Different Problem

A Different Problem

import java.util.Scanner;

public class KattisB {

    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));

            }
        }
    }
}

Server

Server

Kattis - Sum of Others

Kattis - Sum of Others