結果

問題 No.159 刺さらないUSB
ユーザー kou6839kou6839
提出日時 2015-03-09 00:36:53
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 3,339 ms
コンパイル使用メモリ 75,868 KB
実行使用メモリ 56,504 KB
最終ジャッジ日時 2023-09-06 22:26:38
合計ジャッジ時間 5,214 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,044 KB
testcase_01 AC 121 ms
56,052 KB
testcase_02 AC 126 ms
56,076 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 120 ms
55,836 KB
testcase_06 AC 123 ms
56,160 KB
testcase_07 AC 121 ms
56,152 KB
testcase_08 AC 123 ms
55,892 KB
testcase_09 AC 121 ms
56,148 KB
testcase_10 AC 120 ms
55,768 KB
testcase_11 AC 124 ms
56,248 KB
testcase_12 WA -
testcase_13 AC 119 ms
55,528 KB
testcase_14 AC 125 ms
56,064 KB
testcase_15 AC 127 ms
55,536 KB
testcase_16 AC 121 ms
55,684 KB
testcase_17 AC 123 ms
56,000 KB
testcase_18 AC 121 ms
55,912 KB
testcase_19 AC 120 ms
56,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.beans.IntrospectionException;
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double p = sc.nextDouble();
		double q = sc.nextDouble();
		double p1 = (1-p)*q;
		double p2 = p*(1-q)*(1-q);
		if(p1<p2){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0