結果

問題 No.780 オフ会
ユーザー kohaku_kohaku
提出日時 2019-02-19 21:54:09
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 2,162 ms
コンパイル使用メモリ 75,060 KB
実行使用メモリ 41,488 KB
最終ジャッジ日時 2024-10-12 21:32:40
合計ジャッジ時間 5,896 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt() + 1;
        int b = sc.nextInt();
        if( b-a >= 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
        System.out.println(Math.abs(a-b));
    }
}
0