結果

問題 No.780 オフ会
ユーザー hnt
提出日時 2019-02-04 20:03:09
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 4,649 ms
コンパイル使用メモリ 75,524 KB
実行使用メモリ 36,948 KB
最終ジャッジ日時 2024-12-26 00:12:54
合計ジャッジ時間 6,851 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Random;

public class no780 {
    public static void main(String[] args) {
       Random random = new Random();
       final int A = random.nextInt(10000) + 1;
       final int B = random.nextInt(10000) + 1;
       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