結果

問題 No.218 経験値1.5倍
ユーザー yagi2yagi2
提出日時 2017-04-21 12:21:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 512 bytes
コンパイル時間 1,891 ms
コンパイル使用メモリ 71,940 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2023-08-28 14:32:28
合計ジャッジ時間 6,693 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,672 KB
testcase_01 AC 115 ms
55,728 KB
testcase_02 AC 115 ms
55,764 KB
testcase_03 AC 114 ms
55,672 KB
testcase_04 AC 115 ms
55,308 KB
testcase_05 AC 115 ms
55,704 KB
testcase_06 AC 116 ms
56,176 KB
testcase_07 AC 115 ms
55,560 KB
testcase_08 AC 115 ms
55,332 KB
testcase_09 AC 116 ms
55,768 KB
testcase_10 AC 115 ms
55,992 KB
testcase_11 AC 116 ms
56,200 KB
testcase_12 AC 116 ms
56,076 KB
testcase_13 AC 116 ms
55,772 KB
testcase_14 AC 116 ms
56,056 KB
testcase_15 AC 114 ms
55,860 KB
testcase_16 AC 113 ms
55,872 KB
testcase_17 AC 115 ms
55,792 KB
testcase_18 AC 114 ms
55,288 KB
testcase_19 AC 114 ms
55,732 KB
testcase_20 AC 115 ms
55,600 KB
testcase_21 AC 116 ms
55,656 KB
testcase_22 AC 117 ms
55,884 KB
testcase_23 AC 114 ms
55,624 KB
testcase_24 AC 114 ms
56,120 KB
testcase_25 AC 114 ms
55,564 KB
testcase_26 AC 114 ms
55,716 KB
testcase_27 AC 114 ms
56,080 KB
testcase_28 AC 114 ms
55,924 KB
testcase_29 AC 114 ms
56,072 KB
testcase_30 AC 115 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long a = Long.parseLong(sc.next());
        long b = Long.parseLong(sc.next());
        long c = Long.parseLong(sc.next());

        int normal = (int)Math.ceil((double)a / b);
        int bonus = (int)Math.ceil((double)a / c);
        int border = (int)Math.floor((double)normal * (2.0 / 3.0));

        System.out.println((bonus <= border)? "YES" : "NO");
    }
}
0