結果

問題 No.780 オフ会
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-12 18:26:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 1,936 ms
コンパイル使用メモリ 72,316 KB
実行使用メモリ 56,396 KB
最終ジャッジ日時 2023-10-11 10:58:01
合計ジャッジ時間 5,943 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,280 KB
testcase_01 AC 121 ms
56,144 KB
testcase_02 AC 120 ms
56,172 KB
testcase_03 AC 120 ms
55,928 KB
testcase_04 AC 122 ms
56,392 KB
testcase_05 AC 122 ms
56,104 KB
testcase_06 AC 121 ms
56,268 KB
testcase_07 AC 123 ms
56,128 KB
testcase_08 AC 122 ms
55,792 KB
testcase_09 AC 122 ms
56,300 KB
testcase_10 AC 122 ms
55,964 KB
testcase_11 AC 121 ms
56,364 KB
testcase_12 AC 120 ms
55,792 KB
testcase_13 AC 121 ms
55,916 KB
testcase_14 AC 122 ms
56,184 KB
testcase_15 AC 122 ms
56,296 KB
testcase_16 AC 123 ms
56,192 KB
testcase_17 AC 123 ms
56,176 KB
testcase_18 AC 122 ms
55,716 KB
testcase_19 AC 122 ms
56,396 KB
testcase_20 AC 122 ms
55,888 KB
testcase_21 AC 121 ms
55,708 KB
testcase_22 AC 121 ms
55,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int a = sc.nextInt()+1; int b = sc.nextInt();
		
		System.out.println(a<=b?"YES":"NO");
		System.out.println(Math.abs(a-b));
		
	}
}
0