結果

問題 No.289 数字を全て足そう
ユーザー regeregeregerege
提出日時 2015-10-17 10:00:00
言語 F#
(F# 4.0)
結果
AC  
実行時間 338 ms / 1,000 ms
コード長 261 bytes
コンパイル時間 16,924 ms
コンパイル使用メモリ 184,856 KB
実行使用メモリ 35,028 KB
最終ジャッジ日時 2024-04-16 19:17:41
合計ジャッジ時間 16,158 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 333 ms
34,452 KB
testcase_01 AC 333 ms
34,392 KB
testcase_02 AC 333 ms
34,452 KB
testcase_03 AC 335 ms
34,508 KB
testcase_04 AC 338 ms
34,332 KB
testcase_05 AC 332 ms
34,568 KB
testcase_06 AC 331 ms
34,452 KB
testcase_07 AC 335 ms
34,620 KB
testcase_08 AC 333 ms
34,396 KB
testcase_09 AC 332 ms
34,456 KB
testcase_10 AC 333 ms
34,348 KB
testcase_11 AC 332 ms
34,656 KB
testcase_12 AC 334 ms
34,428 KB
testcase_13 AC 331 ms
34,516 KB
testcase_14 AC 332 ms
34,424 KB
testcase_15 AC 333 ms
34,520 KB
testcase_16 AC 333 ms
34,500 KB
testcase_17 AC 331 ms
34,776 KB
testcase_18 AC 335 ms
34,560 KB
testcase_19 AC 333 ms
34,392 KB
testcase_20 AC 330 ms
34,404 KB
testcase_21 AC 332 ms
34,452 KB
testcase_22 AC 332 ms
34,552 KB
testcase_23 AC 336 ms
35,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (450 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/

ソースコード

diff #

let ``No.289 数字を全て足そう`` () =
    stdin.ReadLine()
    |> Seq.choose (fun c ->
        let n = int c
        if 48 <= n && n <= 57 then Some (n-48)
        else None)
    |> Seq.sum
    |> (printfn "%d")
``No.289 数字を全て足そう`` ()    
0