結果

問題 No.780 オフ会
ユーザー MugiMugi
提出日時 2019-02-08 10:47:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 3,992 ms
コンパイル使用メモリ 72,552 KB
実行使用メモリ 58,324 KB
最終ジャッジ日時 2023-09-09 22:09:25
合計ジャッジ時間 7,147 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
55,760 KB
testcase_02 AC 122 ms
55,512 KB
testcase_03 AC 120 ms
55,620 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 119 ms
55,724 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 118 ms
56,080 KB
testcase_10 AC 120 ms
55,884 KB
testcase_11 WA -
testcase_12 AC 120 ms
55,972 KB
testcase_13 AC 119 ms
55,376 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 120 ms
56,176 KB
testcase_17 AC 117 ms
56,080 KB
testcase_18 WA -
testcase_19 AC 118 ms
56,016 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class no780 {
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);
		int A,B = 0;
		A = sc.nextInt();
		B = sc.nextInt();
		A++;
		if(A <= B) {
			System.out.println("YSE");
		}else {
			System.out.println("NO");
		}
		System.out.println(Math.abs(A - B));
	}
}
0