結果
問題 | No.920 あかあお |
ユーザー | guricerin |
提出日時 | 2019-12-08 17:08:27 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 587 bytes |
コンパイル時間 | 4,456 ms |
コンパイル使用メモリ | 165,296 KB |
実行使用メモリ | 26,852 KB |
最終ジャッジ日時 | 2023-08-29 02:06:37 |
合計ジャッジ時間 | 6,643 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
22,900 KB |
testcase_01 | AC | 81 ms
24,824 KB |
testcase_02 | AC | 79 ms
22,824 KB |
testcase_03 | AC | 78 ms
22,768 KB |
testcase_04 | AC | 80 ms
22,856 KB |
testcase_05 | AC | 78 ms
22,720 KB |
testcase_06 | WA | - |
testcase_07 | AC | 77 ms
22,752 KB |
testcase_08 | AC | 76 ms
22,908 KB |
testcase_09 | AC | 78 ms
22,800 KB |
testcase_10 | AC | 79 ms
22,904 KB |
testcase_11 | AC | 78 ms
22,712 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).
ソースコード
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 - max 0 (nax-nin) printfn "%d" (nax + rem / 2) 0 // return an integer exit code