結果

問題 No.159 刺さらないUSB
ユーザー uafr_csuafr_cs
提出日時 2015-05-15 17:47:12
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 509 bytes
コンパイル時間 6,196 ms
コンパイル使用メモリ 71,172 KB
実行使用メモリ 58,064 KB
最終ジャッジ日時 2023-09-20 08:09:56
合計ジャッジ時間 6,597 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
56,584 KB
testcase_01 AC 134 ms
56,500 KB
testcase_02 WA -
testcase_03 AC 134 ms
55,972 KB
testcase_04 AC 136 ms
56,268 KB
testcase_05 WA -
testcase_06 AC 130 ms
56,036 KB
testcase_07 WA -
testcase_08 AC 131 ms
54,404 KB
testcase_09 AC 134 ms
56,080 KB
testcase_10 AC 143 ms
55,892 KB
testcase_11 WA -
testcase_12 AC 136 ms
56,032 KB
testcase_13 AC 132 ms
55,900 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 137 ms
56,076 KB
testcase_17 AC 136 ms
56,036 KB
testcase_18 WA -
testcase_19 AC 135 ms
56,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		final double p = sc.nextDouble();
		final double q = sc.nextDouble();
		
		final double P1 = (1 - p) * q;
		final double P2 = p * (1 - p) * q;
		
		System.out.println(P1 < P2 ? "YES" : "NO");
	}
}
0