結果

問題 No.218 経験値1.5倍
コンテスト
ユーザー koukonko
提出日時 2015-12-17 14:12:43
言語 Java
(openjdk 27 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 29 ms / 2,000 ms
+ 472µs
コード長 662 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,394 ms
コンパイル使用メモリ 84,540 KB
実行使用メモリ 43,504 KB
最終ジャッジ日時 2026-10-09 09:16:34
合計ジャッジ時間 3,761 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));

		try {
			int a = Integer.parseInt(read.readLine());
			int b = Integer.parseInt(read.readLine());
			int c = Integer.parseInt(read.readLine());

			int normal = a / b;
			if (a % b > 0) {
				++normal;
			}

			int campaign = a / c;
			if (a % c > 0) {
				++campaign;
			}

			if (((normal * 2) / 3) >= campaign) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
0