UVA 10055 Java

  1. import java.util.*;
  2. public class main{
  3. public static void main(String[] args) {
  4. Scanner sc = new Scanner(System.in);
  5. while(sc.hasNext())
  6. {
  7. long n1 = sc.nextLong();
  8. long n2 = sc.nextLong();
  9. System.out.println(Math.abs(n1 - n2));
  10. }
  11. }
  12. };

留言

這個網誌中的熱門文章

C# 井字遊戲