結果

問題 No.159 刺さらないUSB
ユーザー willowoooowillowoooo
提出日時 2016-05-18 01:06:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 1,000 ms
コード長 333 bytes
コンパイル時間 3,300 ms
コンパイル使用メモリ 72,332 KB
実行使用メモリ 56,272 KB
最終ジャッジ日時 2023-09-14 16:52:15
合計ジャッジ時間 7,131 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
53,696 KB
testcase_01 AC 142 ms
55,932 KB
testcase_02 AC 141 ms
55,840 KB
testcase_03 AC 141 ms
56,004 KB
testcase_04 AC 141 ms
56,272 KB
testcase_05 AC 142 ms
56,088 KB
testcase_06 AC 143 ms
56,016 KB
testcase_07 AC 141 ms
56,168 KB
testcase_08 AC 142 ms
55,756 KB
testcase_09 AC 141 ms
55,848 KB
testcase_10 AC 142 ms
56,244 KB
testcase_11 AC 142 ms
56,004 KB
testcase_12 AC 142 ms
56,056 KB
testcase_13 AC 141 ms
56,184 KB
testcase_14 AC 142 ms
55,956 KB
testcase_15 AC 141 ms
55,780 KB
testcase_16 AC 140 ms
55,856 KB
testcase_17 AC 142 ms
56,188 KB
testcase_18 AC 140 ms
56,084 KB
testcase_19 AC 142 ms
56,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;
import java.util.Scanner;
public class No159 {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double p,q;
	p = sc.nextDouble();
	q = sc.nextDouble();
	
	double P1 = (1-p)*q;
	double P2 = p * (1-q)*q;
	if(P1<P2){
		System.out.println("YES");
	}
	else
		System.out.println("NO");
}
}
0