結果

問題 No.159 刺さらないUSB
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-29 20:43:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 588 bytes
コンパイル時間 2,099 ms
コンパイル使用メモリ 73,236 KB
実行使用メモリ 37,224 KB
最終ジャッジ日時 2024-07-02 00:03:22
合計ジャッジ時間 3,765 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
36,904 KB
testcase_01 AC 52 ms
36,952 KB
testcase_02 AC 52 ms
36,712 KB
testcase_03 AC 53 ms
37,196 KB
testcase_04 AC 51 ms
36,964 KB
testcase_05 AC 54 ms
37,120 KB
testcase_06 AC 52 ms
37,216 KB
testcase_07 AC 52 ms
36,732 KB
testcase_08 AC 52 ms
37,152 KB
testcase_09 AC 53 ms
37,036 KB
testcase_10 AC 53 ms
37,120 KB
testcase_11 AC 52 ms
37,224 KB
testcase_12 AC 53 ms
37,120 KB
testcase_13 AC 52 ms
37,040 KB
testcase_14 AC 52 ms
36,852 KB
testcase_15 AC 52 ms
37,068 KB
testcase_16 AC 53 ms
36,820 KB
testcase_17 AC 52 ms
36,912 KB
testcase_18 AC 51 ms
36,852 KB
testcase_19 AC 53 ms
37,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import static java.lang.System.in;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        double p = Double.parseDouble(inputs[0]);
        double q = Double.parseDouble(inputs[1]);
        if(1-p < p*(1-q)) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0