結果

問題 No.159 刺さらないUSB
ユーザー リチウムリチウム
提出日時 2015-03-01 23:26:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 3,360 ms
コンパイル使用メモリ 71,992 KB
実行使用メモリ 56,112 KB
最終ジャッジ日時 2023-09-06 06:00:24
合計ジャッジ時間 7,318 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,892 KB
testcase_01 AC 142 ms
54,148 KB
testcase_02 AC 122 ms
55,636 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 119 ms
56,080 KB
testcase_06 AC 120 ms
55,764 KB
testcase_07 AC 116 ms
56,032 KB
testcase_08 AC 119 ms
56,052 KB
testcase_09 AC 121 ms
56,008 KB
testcase_10 AC 118 ms
55,840 KB
testcase_11 AC 120 ms
56,112 KB
testcase_12 WA -
testcase_13 AC 118 ms
54,108 KB
testcase_14 AC 118 ms
55,756 KB
testcase_15 AC 120 ms
55,760 KB
testcase_16 AC 116 ms
55,800 KB
testcase_17 AC 117 ms
55,788 KB
testcase_18 AC 124 ms
55,936 KB
testcase_19 AC 123 ms
56,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder {
	
	
	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