結果

問題 No.780 オフ会
ユーザー Subaru314
提出日時 2021-05-23 23:20:36
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 1,907 ms
コンパイル使用メモリ 74,220 KB
実行使用メモリ 54,280 KB
最終ジャッジ日時 2024-10-12 04:01:10
合計ジャッジ時間 5,544 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        a++;
        if(a<=b){
            System.out.println("Yes");
            System.out.println(b-a);
        }else{
            System.out.println("No");
            System.out.println(a-b);
        }
    }
}
0