結果

問題 No.159 刺さらないUSB
ユーザー Natsume-MNatsume-M
提出日時 2016-11-28 21:24:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 1,000 ms
コード長 232 bytes
コンパイル時間 2,146 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 56,116 KB
最終ジャッジ日時 2023-09-14 16:55:06
合計ジャッジ時間 5,922 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
54,216 KB
testcase_01 AC 141 ms
56,116 KB
testcase_02 AC 141 ms
55,780 KB
testcase_03 AC 139 ms
55,696 KB
testcase_04 AC 140 ms
56,036 KB
testcase_05 AC 140 ms
55,720 KB
testcase_06 AC 140 ms
55,996 KB
testcase_07 AC 140 ms
55,656 KB
testcase_08 AC 140 ms
55,948 KB
testcase_09 AC 141 ms
56,020 KB
testcase_10 AC 139 ms
55,928 KB
testcase_11 AC 139 ms
55,640 KB
testcase_12 AC 140 ms
54,128 KB
testcase_13 AC 140 ms
55,900 KB
testcase_14 AC 138 ms
56,020 KB
testcase_15 AC 139 ms
55,920 KB
testcase_16 AC 139 ms
55,932 KB
testcase_17 AC 139 ms
56,044 KB
testcase_18 AC 139 ms
55,636 KB
testcase_19 AC 142 ms
56,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y159 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float p=sc.nextFloat(), q=sc.nextFloat();
		System.out.println(((1-p)*q)<(p*(1-q)*q)?"YES":"NO");
		sc.close();
	}
}
0