結果

問題 No.218 経験値1.5倍
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-12 21:03:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 489 bytes
コンパイル時間 2,356 ms
コンパイル使用メモリ 71,896 KB
実行使用メモリ 56,496 KB
最終ジャッジ日時 2023-08-28 14:28:08
合計ジャッジ時間 7,639 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,588 KB
testcase_01 AC 119 ms
55,812 KB
testcase_02 AC 120 ms
55,612 KB
testcase_03 AC 119 ms
55,840 KB
testcase_04 AC 119 ms
55,664 KB
testcase_05 AC 119 ms
55,856 KB
testcase_06 AC 119 ms
55,680 KB
testcase_07 AC 119 ms
56,016 KB
testcase_08 AC 118 ms
55,972 KB
testcase_09 AC 119 ms
55,948 KB
testcase_10 AC 119 ms
55,832 KB
testcase_11 AC 118 ms
55,856 KB
testcase_12 AC 120 ms
55,612 KB
testcase_13 AC 118 ms
56,060 KB
testcase_14 AC 122 ms
55,852 KB
testcase_15 AC 120 ms
55,848 KB
testcase_16 AC 117 ms
56,380 KB
testcase_17 AC 118 ms
55,568 KB
testcase_18 AC 119 ms
56,004 KB
testcase_19 AC 119 ms
56,052 KB
testcase_20 AC 116 ms
55,656 KB
testcase_21 AC 120 ms
55,896 KB
testcase_22 AC 119 ms
56,496 KB
testcase_23 AC 125 ms
55,948 KB
testcase_24 AC 120 ms
55,632 KB
testcase_25 AC 121 ms
55,656 KB
testcase_26 AC 119 ms
55,408 KB
testcase_27 AC 119 ms
55,652 KB
testcase_28 AC 120 ms
55,572 KB
testcase_29 AC 119 ms
55,656 KB
testcase_30 AC 121 ms
55,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int no = (int)Math.ceil( (double)a/b) ;
        int ca = (int)Math.ceil( (double)a/c) ;
        double r = (double)no/ca;
        if(r>=1.5){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}
0