結果

問題 No.481 1から10
ユーザー gemmarogemmaro
提出日時 2020-04-05 14:21:58
言語 Elixir
(1.16.2)
結果
AC  
実行時間 642 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 1,071 ms
コンパイル使用メモリ 55,464 KB
実行使用メモリ 49,836 KB
最終ジャッジ日時 2023-08-29 23:56:19
合計ジャッジ時間 8,929 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 633 ms
49,184 KB
testcase_01 AC 642 ms
49,168 KB
testcase_02 AC 626 ms
49,792 KB
testcase_03 AC 620 ms
49,772 KB
testcase_04 AC 618 ms
49,824 KB
testcase_05 AC 614 ms
49,836 KB
testcase_06 AC 625 ms
49,220 KB
testcase_07 AC 629 ms
49,180 KB
testcase_08 AC 632 ms
49,208 KB
testcase_09 AC 627 ms
49,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.split()
    |> Enum.map(fn s -> String.to_integer(s) end)
    |> Enum.sum()
    |> (fn s -> Enum.sum(1..10) - s end).()
    |> IO.puts()
  end
end
0