結果

問題 No.289 数字を全て足そう
ユーザー chike_pluschike_plus
提出日時 2019-03-19 12:37:53
言語 F#
(F# 4.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 3,424 ms
コンパイル使用メモリ 150,376 KB
実行使用メモリ 24,096 KB
最終ジャッジ日時 2023-10-11 21:04:22
合計ジャッジ時間 5,625 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
21,916 KB
testcase_01 AC 56 ms
21,912 KB
testcase_02 AC 56 ms
23,976 KB
testcase_03 AC 56 ms
21,956 KB
testcase_04 AC 56 ms
23,872 KB
testcase_05 AC 56 ms
24,036 KB
testcase_06 AC 56 ms
21,872 KB
testcase_07 AC 56 ms
22,060 KB
testcase_08 AC 56 ms
22,148 KB
testcase_09 AC 56 ms
21,904 KB
testcase_10 AC 56 ms
22,060 KB
testcase_11 AC 55 ms
21,948 KB
testcase_12 AC 56 ms
21,992 KB
testcase_13 AC 56 ms
22,040 KB
testcase_14 AC 56 ms
21,960 KB
testcase_15 AC 56 ms
22,044 KB
testcase_16 AC 56 ms
22,048 KB
testcase_17 AC 56 ms
24,004 KB
testcase_18 AC 57 ms
24,028 KB
testcase_19 AC 56 ms
21,952 KB
testcase_20 AC 57 ms
22,052 KB
testcase_21 AC 55 ms
22,020 KB
testcase_22 AC 57 ms
24,096 KB
testcase_23 AC 56 ms
22,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

  stdin.ReadLine()
  |> Seq.choose ( fun c ->
      if  '0' <=  c &&  c <= '9'
        then Some ((int c)-48)
        else None
  )
  |> Seq.sum
  |> stdout.WriteLine
0