結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-27 20:59:45 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 338 ms / 1,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 11,072 ms |
| コンパイル使用メモリ | 184,040 KB |
| 実行使用メモリ | 34,692 KB |
| 最終ジャッジ日時 | 2024-11-15 17:41:47 |
| 合計ジャッジ時間 | 16,637 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (341 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/
ソースコード
let convert (c:char) =
match (int c) with
| i when 48 <= i && i <= 57 -> i - 48
| _ -> 0
let calc = Seq.map convert >> Seq.sum
stdin.ReadLine () |> calc |> printfn "%d"