結果

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

ソースコード

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