結果

問題 No.159 刺さらないUSB
ユーザー taktak
提出日時 2018-07-30 17:44:10
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 3,324 ms
コンパイル使用メモリ 152,424 KB
実行使用メモリ 24,776 KB
最終ジャッジ日時 2023-09-14 17:02:37
合計ジャッジ時間 6,011 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
22,804 KB
testcase_01 AC 81 ms
22,736 KB
testcase_02 AC 81 ms
22,652 KB
testcase_03 AC 81 ms
22,776 KB
testcase_04 AC 81 ms
22,700 KB
testcase_05 AC 81 ms
24,744 KB
testcase_06 AC 81 ms
24,696 KB
testcase_07 AC 82 ms
22,776 KB
testcase_08 AC 80 ms
22,620 KB
testcase_09 AC 82 ms
22,708 KB
testcase_10 AC 81 ms
22,744 KB
testcase_11 AC 80 ms
22,644 KB
testcase_12 AC 81 ms
22,708 KB
testcase_13 AC 81 ms
22,752 KB
testcase_14 AC 82 ms
22,588 KB
testcase_15 AC 81 ms
22,728 KB
testcase_16 AC 82 ms
22,572 KB
testcase_17 AC 82 ms
22,776 KB
testcase_18 AC 82 ms
22,776 KB
testcase_19 AC 82 ms
24,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let p, q = 
    let t = stdin.ReadLine().Split() |> Array.map float
    t.[0], t.[1]
    
let p1 = (1.0 - p) * q;
let p2 = p * (1.0 - q) * q;

if p1 < p2 then "YES" else "NO" 
|> printfn "%s"
0