結果

問題 No.159 刺さらないUSB
ユーザー taktak
提出日時 2018-07-30 17:48:31
言語 F#
(F# 4.0)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 293 bytes
コンパイル時間 3,361 ms
コンパイル使用メモリ 153,416 KB
実行使用メモリ 24,708 KB
最終ジャッジ日時 2023-09-14 17:04:46
合計ジャッジ時間 6,126 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
22,720 KB
testcase_01 AC 83 ms
24,688 KB
testcase_02 AC 83 ms
20,700 KB
testcase_03 AC 82 ms
22,604 KB
testcase_04 AC 83 ms
22,532 KB
testcase_05 AC 82 ms
22,580 KB
testcase_06 AC 82 ms
24,708 KB
testcase_07 AC 81 ms
22,628 KB
testcase_08 AC 84 ms
22,652 KB
testcase_09 AC 84 ms
22,612 KB
testcase_10 AC 83 ms
22,580 KB
testcase_11 AC 82 ms
24,608 KB
testcase_12 AC 82 ms
22,612 KB
testcase_13 AC 83 ms
22,632 KB
testcase_14 AC 82 ms
22,692 KB
testcase_15 AC 84 ms
22,704 KB
testcase_16 AC 83 ms
22,680 KB
testcase_17 AC 82 ms
22,720 KB
testcase_18 AC 82 ms
24,664 KB
testcase_19 AC 82 ms
22,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let hoge p q =
    let p1 = (1.0 - p) * q;
    let p2 = p * (1.0 - q) * q;    
    if p1 < p2 then "YES" else "NO"    

[<EntryPointAttribute>]
let main _ =
    let p, q = 
        let t = stdin.ReadLine().Split() |> Array.map float
        t.[0], t.[1]
    hoge p q |> printfn "%s"     
    0
0