結果

問題 No.159 刺さらないUSB
ユーザー TatsuDXTatsuDX
提出日時 2016-09-09 00:08:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 1,000 ms
コード長 285 bytes
コンパイル時間 3,287 ms
コンパイル使用メモリ 72,564 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-09-14 16:53:28
合計ジャッジ時間 7,287 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
56,032 KB
testcase_01 AC 138 ms
56,012 KB
testcase_02 AC 141 ms
55,800 KB
testcase_03 AC 139 ms
56,436 KB
testcase_04 AC 142 ms
55,756 KB
testcase_05 AC 141 ms
55,968 KB
testcase_06 AC 140 ms
55,984 KB
testcase_07 AC 142 ms
56,136 KB
testcase_08 AC 144 ms
55,828 KB
testcase_09 AC 143 ms
55,984 KB
testcase_10 AC 142 ms
55,812 KB
testcase_11 AC 141 ms
55,776 KB
testcase_12 AC 140 ms
56,256 KB
testcase_13 AC 140 ms
56,348 KB
testcase_14 AC 140 ms
55,708 KB
testcase_15 AC 138 ms
55,672 KB
testcase_16 AC 139 ms
55,828 KB
testcase_17 AC 140 ms
56,252 KB
testcase_18 AC 139 ms
55,792 KB
testcase_19 AC 140 ms
55,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double p = sc.nextDouble(), q = sc.nextDouble();
		if((1-p)*q < p*(1-q)*q){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}
0