結果

問題 No.218 経験値1.5倍
ユーザー yuppe19 😺
提出日時 2015-05-22 16:40:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 494 bytes
コンパイル時間 2,999 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2024-12-29 14:50:00
合計ジャッジ時間 8,063 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    private void solve() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int x = a / b + (a%b>0 ? 1 : 0);
        int y = a / c + (a%c>0 ? 1 : 0);
        String res;
        if(2*x >= 3*y) { res = "YES"; }
        else { res = "NO"; }
        System.out.println(res);
    }

    public static void main(String[] args) {
        new Main().solve();
    }
}
0