結果

問題 No.3033 Test of Russian
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2018-04-01 22:59:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 2,619 ms
コンパイル使用メモリ 71,568 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-09-08 12:52:13
合計ジャッジ時間 3,912 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,128 KB
testcase_01 AC 124 ms
55,524 KB
testcase_02 AC 128 ms
56,072 KB
testcase_03 AC 122 ms
55,556 KB
testcase_04 AC 125 ms
55,792 KB
testcase_05 AC 124 ms
55,856 KB
testcase_06 AC 122 ms
55,740 KB
testcase_07 AC 124 ms
54,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int x = sc.nextInt();
        if( x >= (n-m)+3 ) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0