結果

問題 No.780 オフ会
ユーザー hnt
提出日時 2019-02-04 20:13:50
言語 Java
(openjdk 23)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 427 bytes
コンパイル時間 4,596 ms
コンパイル使用メモリ 76,752 KB
実行使用メモリ 41,444 KB
最終ジャッジ日時 2024-12-26 00:18:22
合計ジャッジ時間 9,622 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class no780 {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in); 
       final int A = sc.nextInt();
       final int B = sc.nextInt();
       final int YASUO = A + 1;

       if (YASUO <= B) {
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }

       System.out.println("" + Math.abs(YASUO - B));
    }
}
0