結果
| 問題 | No.656 ゴルフ |
| コンテスト | |
| ユーザー |
tak
|
| 提出日時 | 2018-03-06 09:45:40 |
| 言語 | F# (F# 10.0) |
| 結果 |
AC
|
| 実行時間 | 207 ms / 2,000 ms |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 9,899 ms |
| コンパイル使用メモリ | 209,540 KB |
| 実行使用メモリ | 36,700 KB |
| 最終ジャッジ日時 | 2026-04-04 18:34:51 |
| 合計ジャッジ時間 | 12,774 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (372 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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
tak