結果

問題 No.218 経験値1.5倍
ユーザー mobius_bkstmobius_bkst
提出日時 2015-05-29 22:41:27
言語 Java19
(openjdk 21)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 1,083 bytes
コンパイル時間 3,343 ms
コンパイル使用メモリ 76,944 KB
実行使用メモリ 49,656 KB
最終ジャッジ日時 2023-08-28 14:06:30
合計ジャッジ時間 5,420 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,256 KB
testcase_01 AC 42 ms
49,224 KB
testcase_02 AC 41 ms
49,444 KB
testcase_03 AC 41 ms
49,128 KB
testcase_04 AC 41 ms
49,508 KB
testcase_05 AC 42 ms
49,260 KB
testcase_06 AC 41 ms
49,548 KB
testcase_07 AC 40 ms
49,348 KB
testcase_08 AC 40 ms
49,168 KB
testcase_09 AC 40 ms
49,400 KB
testcase_10 AC 40 ms
49,552 KB
testcase_11 AC 40 ms
49,328 KB
testcase_12 AC 40 ms
49,152 KB
testcase_13 AC 41 ms
49,244 KB
testcase_14 AC 41 ms
49,244 KB
testcase_15 AC 40 ms
49,252 KB
testcase_16 AC 39 ms
49,284 KB
testcase_17 AC 40 ms
49,652 KB
testcase_18 AC 40 ms
49,336 KB
testcase_19 AC 39 ms
49,124 KB
testcase_20 AC 40 ms
49,156 KB
testcase_21 AC 40 ms
49,232 KB
testcase_22 AC 40 ms
49,360 KB
testcase_23 AC 40 ms
49,280 KB
testcase_24 AC 39 ms
49,228 KB
testcase_25 AC 38 ms
49,656 KB
testcase_26 AC 38 ms
49,344 KB
testcase_27 AC 39 ms
49,344 KB
testcase_28 AC 38 ms
49,160 KB
testcase_29 AC 40 ms
49,272 KB
testcase_30 AC 40 ms
49,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No218 {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(
                    System.in));
            int a = Integer.parseInt(br.readLine());
            int b = Integer.parseInt(br.readLine());
            int c = Integer.parseInt(br.readLine());

            double normal = Math.ceil(a / (double) b);
            double campeign = Math.ceil(a / (double) c);

            String str = "NO";
            if (normal * (2 / 3.0) >= campeign) {
                str = "YES";
            }

            System.out.println(str);
        } catch (Exception e) {
            System.err.println("Error:" + e.getMessage());
        }
    }

    static int[] strToIntArray(String S) {
        String[] strArray = S.split(" ");
        int[] intArray = new int[strArray.length];
        for (int i = 0; i < strArray.length; i++) {
            intArray[i] = Integer.parseInt(strArray[i]);
        }
        return intArray;
    }
}
0