結果

問題 No.780 オフ会
ユーザー shinwisteria
提出日時 2019-01-20 22:05:17
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 3,308 ms
コンパイル使用メモリ 74,324 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-09-14 01:55:28
合計ジャッジ時間 7,401 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No780 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt();
		int B = s.nextInt();
		s.close();
		if(A + 1 <= B){
			System.out.println("YES");
			System.out.println("0");
		}else{
			System.out.println("NO");
			System.out.println(A + 1 -B);
		}

	}

}
0