結果

問題 No.920 あかあお
ユーザー guriceringuricerin
提出日時 2019-12-08 17:14:40
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 581 bytes
コンパイル時間 3,414 ms
コンパイル使用メモリ 165,164 KB
実行使用メモリ 24,916 KB
最終ジャッジ日時 2023-08-29 03:11:42
合計ジャッジ時間 6,003 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
24,916 KB
testcase_01 AC 83 ms
22,848 KB
testcase_02 AC 82 ms
20,732 KB
testcase_03 AC 83 ms
22,700 KB
testcase_04 AC 83 ms
24,824 KB
testcase_05 AC 82 ms
22,788 KB
testcase_06 WA -
testcase_07 AC 83 ms
22,928 KB
testcase_08 AC 80 ms
22,836 KB
testcase_09 AC 80 ms
22,816 KB
testcase_10 AC 82 ms
24,864 KB
testcase_11 AC 83 ms
22,776 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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
    let nin = min X Y
    let nax = max X Y
    let rem = Z - (nax-nin)
    printfn "%d" (nax + rem / 2)
    0 // return an integer exit code
0