結果

問題 No.512 魔法少女の追いかけっこ
ユーザー nobigomunobigomu
提出日時 2018-06-05 18:09:54
言語 F#
(F# 4.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 3,879 ms
コンパイル使用メモリ 157,896 KB
実行使用メモリ 24,960 KB
最終ジャッジ日時 2023-09-12 22:29:04
合計ジャッジ時間 10,734 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
20,764 KB
testcase_01 AC 83 ms
22,700 KB
testcase_02 AC 82 ms
20,760 KB
testcase_03 AC 84 ms
22,860 KB
testcase_04 AC 82 ms
24,800 KB
testcase_05 AC 82 ms
22,780 KB
testcase_06 AC 82 ms
22,832 KB
testcase_07 AC 82 ms
20,744 KB
testcase_08 AC 82 ms
22,792 KB
testcase_09 AC 81 ms
22,916 KB
testcase_10 AC 82 ms
24,876 KB
testcase_11 AC 82 ms
24,840 KB
testcase_12 AC 82 ms
22,820 KB
testcase_13 AC 83 ms
24,880 KB
testcase_14 AC 83 ms
24,796 KB
testcase_15 AC 86 ms
22,776 KB
testcase_16 AC 83 ms
22,804 KB
testcase_17 AC 82 ms
24,844 KB
testcase_18 AC 82 ms
22,764 KB
testcase_19 AC 82 ms
22,820 KB
testcase_20 AC 82 ms
22,852 KB
testcase_21 AC 82 ms
22,860 KB
testcase_22 AC 83 ms
22,756 KB
testcase_23 AC 83 ms
22,856 KB
testcase_24 AC 85 ms
22,868 KB
testcase_25 AC 84 ms
22,836 KB
testcase_26 AC 85 ms
22,852 KB
testcase_27 AC 84 ms
22,800 KB
testcase_28 AC 84 ms
24,844 KB
testcase_29 AC 83 ms
22,804 KB
testcase_30 AC 85 ms
22,920 KB
testcase_31 AC 85 ms
24,868 KB
testcase_32 AC 84 ms
22,792 KB
testcase_33 AC 84 ms
20,804 KB
testcase_34 AC 83 ms
22,836 KB
testcase_35 AC 84 ms
23,000 KB
testcase_36 AC 84 ms
22,852 KB
testcase_37 AC 84 ms
24,772 KB
testcase_38 AC 83 ms
22,900 KB
testcase_39 AC 83 ms
22,780 KB
testcase_40 AC 85 ms
22,848 KB
testcase_41 AC 84 ms
22,760 KB
testcase_42 AC 85 ms
22,812 KB
testcase_43 AC 85 ms
22,992 KB
testcase_44 AC 85 ms
24,788 KB
testcase_45 AC 84 ms
24,960 KB
testcase_46 AC 84 ms
22,752 KB
testcase_47 AC 85 ms
22,892 KB
testcase_48 AC 84 ms
24,804 KB
testcase_49 AC 83 ms
20,768 KB
testcase_50 AC 82 ms
22,764 KB
testcase_51 AC 84 ms
24,816 KB
testcase_52 AC 83 ms
22,804 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

/home/judge/data/code/Main.fs(7,8): warning FS0025: Incomplete pattern matches on this expression. For example, the value 'Some (false)' may indicate a case not covered by the pattern(s).

ソースコード

diff #

let f () =
    let m = (stdin.ReadLine ()).Split ' ' |> Array.map int
    let n = stdin.ReadLine () |> int
    let a = (stdin.ReadLine ()).Split ' ' |> Array.map int
    seq { for i in 0..n-2 -> a.[i]*m.[1]>a.[i+1]*m.[0] }
    |> Seq.tryFind (fun b -> b=true)
    |> function
        | Some (true) -> "NO"
        | None -> "YES"
f () |> printfn "%s"
0