結果

問題 No.480 合計
ユーザー TomoProgTomoProg
提出日時 2019-03-09 15:29:40
言語 Elixir
(1.16.2)
結果
AC  
実行時間 659 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 1,035 ms
コンパイル使用メモリ 54,796 KB
実行使用メモリ 50,308 KB
最終ジャッジ日時 2023-08-29 23:13:07
合計ジャッジ時間 16,415 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 620 ms
49,100 KB
testcase_01 AC 605 ms
50,308 KB
testcase_02 AC 609 ms
50,016 KB
testcase_03 AC 623 ms
49,296 KB
testcase_04 AC 616 ms
49,272 KB
testcase_05 AC 608 ms
49,896 KB
testcase_06 AC 615 ms
49,128 KB
testcase_07 AC 624 ms
49,136 KB
testcase_08 AC 618 ms
49,380 KB
testcase_09 AC 623 ms
49,144 KB
testcase_10 AC 614 ms
49,208 KB
testcase_11 AC 625 ms
49,176 KB
testcase_12 AC 620 ms
49,308 KB
testcase_13 AC 622 ms
49,444 KB
testcase_14 AC 659 ms
49,272 KB
testcase_15 AC 635 ms
49,436 KB
testcase_16 AC 622 ms
49,252 KB
testcase_17 AC 645 ms
49,452 KB
testcase_18 AC 628 ms
49,476 KB
testcase_19 AC 631 ms
49,160 KB
testcase_20 AC 636 ms
49,432 KB
testcase_21 AC 627 ms
49,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    no = IO.gets("") |> String.replace("\n", "") |> String.to_integer
    IO.puts Enum.sum(1..no)
  end
end
0