結果
問題 | No.656 ゴルフ |
ユーザー |
![]() |
提出日時 | 2018-03-06 09:45:40 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 338 ms / 2,000 ms |
コード長 | 443 bytes |
コンパイル時間 | 14,674 ms |
コンパイル使用メモリ | 191,484 KB |
実行使用メモリ | 33,724 KB |
最終ジャッジ日時 | 2024-09-15 08:16:07 |
合計ジャッジ時間 | 13,279 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (584 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open System open System.Collections open System.Collections.Generic open System.IO [<EntryPoint>] let main _ = let S = Console.ReadLine().ToCharArray() |> Array.map (fun c -> int c - int '0') let ans = let under = S |> Array.sum let over = S |> Array.where(fun x -> x = 0) |> Array.length |> (*) 10 under + over printfn "%i" ans 0