結果

問題 No.159 刺さらないUSB
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-06 21:41:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 1,000 ms
コード長 415 bytes
コンパイル時間 2,049 ms
コンパイル使用メモリ 70,844 KB
実行使用メモリ 56,452 KB
最終ジャッジ日時 2023-09-14 16:36:48
合計ジャッジ時間 5,896 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
54,316 KB
testcase_01 AC 140 ms
56,108 KB
testcase_02 AC 139 ms
56,452 KB
testcase_03 AC 140 ms
56,156 KB
testcase_04 AC 142 ms
56,160 KB
testcase_05 AC 143 ms
55,776 KB
testcase_06 AC 142 ms
56,052 KB
testcase_07 AC 140 ms
55,860 KB
testcase_08 AC 143 ms
56,064 KB
testcase_09 AC 143 ms
55,556 KB
testcase_10 AC 142 ms
56,236 KB
testcase_11 AC 140 ms
55,764 KB
testcase_12 AC 139 ms
56,064 KB
testcase_13 AC 141 ms
56,056 KB
testcase_14 AC 140 ms
55,752 KB
testcase_15 AC 141 ms
56,096 KB
testcase_16 AC 141 ms
56,008 KB
testcase_17 AC 140 ms
55,692 KB
testcase_18 AC 143 ms
56,292 KB
testcase_19 AC 140 ms
56,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
       double p = koko.nextDouble();
       double q = koko.nextDouble();
       double ichi =(1-p)*q;
       double ni = p*(1-q)*q;
       if(ni>ichi){
           System.out.println("YES");
       }else{
           System.out.println("NO");
       }
    }
}
0