結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 619 ms
49,104 KB
testcase_01 AC 627 ms
49,960 KB
testcase_02 AC 626 ms
49,304 KB
testcase_03 AC 618 ms
49,404 KB
testcase_04 AC 621 ms
49,464 KB
testcase_05 AC 624 ms
49,796 KB
testcase_06 AC 623 ms
49,164 KB
testcase_07 AC 622 ms
49,296 KB
testcase_08 AC 618 ms
49,892 KB
testcase_09 AC 630 ms
49,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> 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