結果

問題 No.3033 Test of Russian
ユーザー Mcpu3Mcpu3
提出日時 2018-09-27 23:27:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 2,254 ms
コンパイル使用メモリ 77,892 KB
実行使用メモリ 41,476 KB
最終ジャッジ日時 2024-04-20 09:14:24
合計ジャッジ時間 4,067 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
41,476 KB
testcase_01 AC 136 ms
41,116 KB
testcase_02 AC 123 ms
40,028 KB
testcase_03 AC 136 ms
41,140 KB
testcase_04 AC 138 ms
41,036 KB
testcase_05 AC 137 ms
41,336 KB
testcase_06 AC 136 ms
41,360 KB
testcase_07 AC 138 ms
41,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(), M = sc.nextInt(), X = sc.nextInt();
        sc.close();
        if (3 > X - N + M) System.out.print("NO");
        else System.out.print("YES");
    }
}
0