結果

問題 No.218 経験値1.5倍
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-02-01 00:25:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 742 bytes
コンパイル時間 2,560 ms
コンパイル使用メモリ 72,384 KB
実行使用メモリ 57,092 KB
最終ジャッジ日時 2023-08-28 14:30:19
合計ジャッジ時間 7,025 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,884 KB
testcase_01 AC 120 ms
55,836 KB
testcase_02 AC 119 ms
55,956 KB
testcase_03 AC 121 ms
56,460 KB
testcase_04 AC 115 ms
55,700 KB
testcase_05 AC 120 ms
55,592 KB
testcase_06 AC 120 ms
55,936 KB
testcase_07 AC 120 ms
55,592 KB
testcase_08 AC 124 ms
55,476 KB
testcase_09 AC 127 ms
55,604 KB
testcase_10 AC 126 ms
55,680 KB
testcase_11 AC 126 ms
55,508 KB
testcase_12 AC 126 ms
55,852 KB
testcase_13 AC 128 ms
57,092 KB
testcase_14 AC 133 ms
55,792 KB
testcase_15 AC 126 ms
55,688 KB
testcase_16 AC 126 ms
55,752 KB
testcase_17 AC 126 ms
55,476 KB
testcase_18 AC 125 ms
55,800 KB
testcase_19 AC 131 ms
55,604 KB
testcase_20 AC 127 ms
55,408 KB
testcase_21 AC 124 ms
55,804 KB
testcase_22 AC 119 ms
55,676 KB
testcase_23 AC 125 ms
55,524 KB
testcase_24 AC 119 ms
55,732 KB
testcase_25 AC 120 ms
55,692 KB
testcase_26 AC 121 ms
55,672 KB
testcase_27 AC 119 ms
55,976 KB
testcase_28 AC 122 ms
55,536 KB
testcase_29 AC 124 ms
55,572 KB
testcase_30 AC 124 ms
55,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int c = in.nextInt();

        int normalCnt = 0;
        int normal = 0;

        while(normal < a) {
            normalCnt++;
            normal += b;
        }

        int upCnt = 0;
        int up = 0;

        while(up < a) {
            upCnt++;
            up += c;
        }

        double yosou = (double)normalCnt * 2.0 / 3.0;

        if(upCnt <= yosou) System.out.println("YES");
        else System.out.println("NO");

        in.close();
    }
}
0