結果

問題 No.159 刺さらないUSB
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-29 20:43:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 588 bytes
コンパイル時間 1,858 ms
コンパイル使用メモリ 71,700 KB
実行使用メモリ 49,904 KB
最終ジャッジ日時 2023-09-14 16:57:01
合計ジャッジ時間 3,767 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,524 KB
testcase_01 AC 46 ms
49,496 KB
testcase_02 AC 45 ms
49,520 KB
testcase_03 AC 46 ms
49,904 KB
testcase_04 AC 45 ms
47,492 KB
testcase_05 AC 45 ms
49,588 KB
testcase_06 AC 45 ms
49,616 KB
testcase_07 AC 45 ms
49,524 KB
testcase_08 AC 45 ms
49,512 KB
testcase_09 AC 45 ms
49,556 KB
testcase_10 AC 45 ms
49,416 KB
testcase_11 AC 45 ms
49,824 KB
testcase_12 AC 45 ms
49,468 KB
testcase_13 AC 45 ms
49,372 KB
testcase_14 AC 46 ms
49,644 KB
testcase_15 AC 45 ms
49,432 KB
testcase_16 AC 46 ms
49,496 KB
testcase_17 AC 45 ms
49,428 KB
testcase_18 AC 45 ms
49,576 KB
testcase_19 AC 45 ms
49,688 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