結果
問題 | No.780 オフ会 |
ユーザー | YukimotoPG |
提出日時 | 2019-02-12 18:24:12 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 1,985 ms |
コンパイル使用メモリ | 71,668 KB |
実行使用メモリ | 58,116 KB |
最終ジャッジ日時 | 2023-10-11 10:57:55 |
合計ジャッジ時間 | 5,882 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
55,868 KB |
testcase_01 | AC | 120 ms
56,080 KB |
testcase_02 | AC | 119 ms
56,532 KB |
testcase_03 | AC | 119 ms
56,208 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 118 ms
56,136 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 119 ms
56,164 KB |
testcase_10 | AC | 121 ms
58,116 KB |
testcase_11 | WA | - |
testcase_12 | AC | 118 ms
56,444 KB |
testcase_13 | AC | 118 ms
56,192 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 119 ms
56,212 KB |
testcase_17 | AC | 122 ms
56,460 KB |
testcase_18 | WA | - |
testcase_19 | AC | 119 ms
56,212 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
// import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a<b?"YES":"NO"); System.out.println(Math.max(0, a-b+1)); } }