結果

問題 No.289 数字を全て足そう
ユーザー 3qvwn3qvwn
提出日時 2019-07-03 14:22:07
言語 Elixir
(1.16.2)
結果
AC  
実行時間 636 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 1,226 ms
コンパイル使用メモリ 55,208 KB
実行使用メモリ 51,324 KB
最終ジャッジ日時 2023-08-29 23:37:16
合計ジャッジ時間 17,983 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 617 ms
49,168 KB
testcase_01 AC 612 ms
49,416 KB
testcase_02 AC 613 ms
49,008 KB
testcase_03 AC 615 ms
49,172 KB
testcase_04 AC 611 ms
49,792 KB
testcase_05 AC 621 ms
49,024 KB
testcase_06 AC 636 ms
49,204 KB
testcase_07 AC 629 ms
50,176 KB
testcase_08 AC 627 ms
50,704 KB
testcase_09 AC 624 ms
49,464 KB
testcase_10 AC 619 ms
49,376 KB
testcase_11 AC 631 ms
50,040 KB
testcase_12 AC 624 ms
50,160 KB
testcase_13 AC 615 ms
50,512 KB
testcase_14 AC 631 ms
51,324 KB
testcase_15 AC 634 ms
50,012 KB
testcase_16 AC 627 ms
49,700 KB
testcase_17 AC 630 ms
50,452 KB
testcase_18 AC 623 ms
50,724 KB
testcase_19 AC 629 ms
50,012 KB
testcase_20 AC 632 ms
49,996 KB
testcase_21 AC 615 ms
50,168 KB
testcase_22 AC 622 ms
50,604 KB
testcase_23 AC 634 ms
50,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("") |> String.codepoints |> Enum.filter(&String.match?(&1, ~r/[0-9]/)) |> Enum.map(&String.to_integer/1) |> Enum.sum |> IO.puts
  end
end
0