結果

問題 No.920 あかあお
ユーザー guriceringuricerin
提出日時 2019-12-08 17:33:19
言語 F#
(F# 4.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 531 bytes
コンパイル時間 4,288 ms
コンパイル使用メモリ 167,416 KB
実行使用メモリ 25,000 KB
最終ジャッジ日時 2023-08-29 06:43:03
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
20,928 KB
testcase_01 AC 83 ms
23,020 KB
testcase_02 AC 84 ms
24,976 KB
testcase_03 AC 84 ms
22,936 KB
testcase_04 AC 84 ms
22,744 KB
testcase_05 AC 84 ms
24,872 KB
testcase_06 AC 84 ms
24,840 KB
testcase_07 AC 84 ms
25,000 KB
testcase_08 AC 82 ms
22,840 KB
testcase_09 AC 83 ms
20,916 KB
testcase_10 AC 83 ms
24,980 KB
testcase_11 AC 83 ms
22,692 KB
testcase_12 AC 84 ms
22,844 KB
testcase_13 AC 85 ms
22,956 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(22,9): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[|_; _; _; _|]' may indicate a case not covered by the pattern(s).

ソースコード

diff #

open System

[<AutoOpen>]
module Cin =
    let read f = stdin.ReadLine() |> f
    let reada f = stdin.ReadLine().Split() |> Array.map f

    let readInts() =
        read string
        |> Seq.toArray
        |> Array.map (fun x -> Convert.ToInt32(x.ToString()))

module Util =
    let strRev s =
        s
        |> Seq.rev
        |> Seq.map string
        |> String.concat ""

[<EntryPoint>]
let main _ =
    let [|X;Y;Z|] = reada int
    List.min [X+Z; Y+Z; (X+Y+Z)/2]
    |> printfn "%d"
    0 // return an integer exit code
0