結果

問題 No.512 魔法少女の追いかけっこ
ユーザー nobigomunobigomu
提出日時 2018-06-05 17:55:15
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 3,740 ms
コンパイル使用メモリ 159,576 KB
実行使用メモリ 24,944 KB
最終ジャッジ日時 2023-09-12 22:28:50
合計ジャッジ時間 9,743 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
24,892 KB
testcase_01 AC 82 ms
24,856 KB
testcase_02 AC 81 ms
22,852 KB
testcase_03 AC 82 ms
22,856 KB
testcase_04 AC 81 ms
22,916 KB
testcase_05 AC 81 ms
22,804 KB
testcase_06 AC 82 ms
22,764 KB
testcase_07 WA -
testcase_08 AC 83 ms
24,848 KB
testcase_09 AC 85 ms
24,856 KB
testcase_10 AC 82 ms
24,760 KB
testcase_11 AC 81 ms
24,780 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 82 ms
22,812 KB
testcase_16 AC 82 ms
24,856 KB
testcase_17 WA -
testcase_18 AC 83 ms
22,860 KB
testcase_19 AC 82 ms
24,796 KB
testcase_20 AC 83 ms
22,744 KB
testcase_21 WA -
testcase_22 AC 80 ms
24,784 KB
testcase_23 AC 81 ms
22,828 KB
testcase_24 AC 82 ms
22,856 KB
testcase_25 AC 82 ms
20,712 KB
testcase_26 WA -
testcase_27 AC 81 ms
24,844 KB
testcase_28 AC 81 ms
22,844 KB
testcase_29 AC 81 ms
22,788 KB
testcase_30 WA -
testcase_31 AC 82 ms
22,896 KB
testcase_32 AC 83 ms
22,736 KB
testcase_33 WA -
testcase_34 AC 80 ms
22,832 KB
testcase_35 AC 81 ms
22,852 KB
testcase_36 AC 82 ms
24,716 KB
testcase_37 AC 81 ms
22,680 KB
testcase_38 AC 80 ms
22,936 KB
testcase_39 WA -
testcase_40 AC 81 ms
22,676 KB
testcase_41 AC 81 ms
22,804 KB
testcase_42 WA -
testcase_43 AC 81 ms
24,720 KB
testcase_44 WA -
testcase_45 AC 82 ms
22,852 KB
testcase_46 WA -
testcase_47 AC 81 ms
22,716 KB
testcase_48 AC 81 ms
22,716 KB
testcase_49 WA -
testcase_50 AC 82 ms
22,724 KB
testcase_51 AC 81 ms
22,904 KB
testcase_52 AC 80 ms
24,904 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 'None' 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 1..n-1 -> a.[i-1]*m.[1]>a.[i]*m.[0] }
    |> Seq.tryFind (fun b -> true)
    |> function
        | Some (true) -> "NO"
        | Some (false) -> "YES"
f () |> printfn "%s"
0