結果

問題 No.218 経験値1.5倍
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-30 17:05:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 763 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,108 KB
実行使用メモリ 49,368 KB
最終ジャッジ日時 2023-08-28 14:32:43
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
49,208 KB
testcase_01 AC 39 ms
49,196 KB
testcase_02 AC 40 ms
49,168 KB
testcase_03 AC 40 ms
49,184 KB
testcase_04 AC 39 ms
49,236 KB
testcase_05 AC 40 ms
49,060 KB
testcase_06 AC 40 ms
49,180 KB
testcase_07 AC 39 ms
49,012 KB
testcase_08 AC 39 ms
49,328 KB
testcase_09 AC 39 ms
49,280 KB
testcase_10 AC 40 ms
48,976 KB
testcase_11 AC 40 ms
48,984 KB
testcase_12 AC 40 ms
49,064 KB
testcase_13 AC 41 ms
49,368 KB
testcase_14 AC 40 ms
49,140 KB
testcase_15 AC 40 ms
49,268 KB
testcase_16 AC 38 ms
49,264 KB
testcase_17 AC 40 ms
49,104 KB
testcase_18 AC 40 ms
49,148 KB
testcase_19 AC 39 ms
49,192 KB
testcase_20 AC 40 ms
49,076 KB
testcase_21 AC 39 ms
49,284 KB
testcase_22 AC 39 ms
49,312 KB
testcase_23 AC 41 ms
49,128 KB
testcase_24 AC 40 ms
49,144 KB
testcase_25 AC 39 ms
48,988 KB
testcase_26 AC 39 ms
49,192 KB
testcase_27 AC 39 ms
49,196 KB
testcase_28 AC 40 ms
49,336 KB
testcase_29 AC 39 ms
49,056 KB
testcase_30 AC 40 ms
49,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

import static java.lang.System.in;


public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int a = Integer.parseInt(reader.readLine());
        int b = Integer.parseInt(reader.readLine());
        int c = Integer.parseInt(reader.readLine());
        int requiredSource = (a + b - 1) / b;
        int requiredSourceDuringCampaign = (a + c - 1) / c;
        if(requiredSource * 2 >= requiredSourceDuringCampaign*3 ) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0