結果

問題 No.159 刺さらないUSB
ユーザー regeregeregerege
提出日時 2016-10-02 02:09:56
言語 F#
(F# 4.0)
結果
AC  
実行時間 71 ms / 1,000 ms
コード長 165 bytes
コンパイル時間 3,706 ms
コンパイル使用メモリ 156,048 KB
実行使用メモリ 24,424 KB
最終ジャッジ日時 2023-09-14 16:54:15
合計ジャッジ時間 6,153 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
22,404 KB
testcase_01 AC 70 ms
24,348 KB
testcase_02 AC 70 ms
24,424 KB
testcase_03 AC 69 ms
22,256 KB
testcase_04 AC 69 ms
22,296 KB
testcase_05 AC 69 ms
22,348 KB
testcase_06 AC 70 ms
22,420 KB
testcase_07 AC 70 ms
22,416 KB
testcase_08 AC 69 ms
22,336 KB
testcase_09 AC 71 ms
24,296 KB
testcase_10 AC 70 ms
24,240 KB
testcase_11 AC 69 ms
24,356 KB
testcase_12 AC 70 ms
22,200 KB
testcase_13 AC 70 ms
24,308 KB
testcase_14 AC 69 ms
20,360 KB
testcase_15 AC 69 ms
24,228 KB
testcase_16 AC 69 ms
22,336 KB
testcase_17 AC 69 ms
22,216 KB
testcase_18 AC 70 ms
24,344 KB
testcase_19 AC 69 ms
22,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let args = stdin.ReadLine().Split(' ')
let p = float args.[0]
let q = float args.[1]
let P1 = (1.-p)*q
let P2 = p*(1.-q)*q
printfn <| if P1 < P2 then "YES" else "NO"
0