結果

問題 No.3033 Test of Russian
ユーザー GrenacheGrenache
提出日時 2018-04-01 22:28:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 745 bytes
コンパイル時間 3,637 ms
コンパイル使用メモリ 72,832 KB
実行使用メモリ 55,772 KB
最終ジャッジ日時 2023-09-08 12:42:17
合計ジャッジ時間 5,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,500 KB
testcase_01 AC 125 ms
55,444 KB
testcase_02 AC 127 ms
55,692 KB
testcase_03 AC 128 ms
55,636 KB
testcase_04 AC 126 ms
55,772 KB
testcase_05 AC 126 ms
55,660 KB
testcase_06 AC 128 ms
55,644 KB
testcase_07 AC 129 ms
55,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder3033 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();

		if (m - (n - x) >= 3) {
			pr.println("YES");
		} else {
			pr.println("NO");
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(INPUT == null ? System.in : new ByteArrayInputStream(INPUT.getBytes()));
		pr = new Printer(System.out);

		solve();

//		pr.close();
		pr.flush();
//		sc.close();
	}

	static String INPUT = null;

	private static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
}
0