結果

問題 No.480 合計
ユーザー asumasum
提出日時 2024-04-08 10:31:48
言語 Elixir
(1.16.2)
結果
AC  
実行時間 570 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 6,103 ms
コンパイル使用メモリ 60,892 KB
実行使用メモリ 55,332 KB
最終ジャッジ日時 2024-04-08 10:33:09
合計ジャッジ時間 25,353 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 570 ms
55,332 KB
testcase_01 AC 536 ms
55,300 KB
testcase_02 AC 544 ms
54,928 KB
testcase_03 AC 551 ms
55,332 KB
testcase_04 AC 542 ms
55,332 KB
testcase_05 AC 547 ms
55,332 KB
testcase_06 AC 544 ms
55,332 KB
testcase_07 AC 566 ms
55,332 KB
testcase_08 AC 535 ms
55,120 KB
testcase_09 AC 568 ms
55,332 KB
testcase_10 AC 543 ms
55,332 KB
testcase_11 AC 545 ms
55,164 KB
testcase_12 AC 542 ms
55,332 KB
testcase_13 AC 543 ms
54,760 KB
testcase_14 AC 538 ms
54,772 KB
testcase_15 AC 537 ms
55,332 KB
testcase_16 AC 539 ms
55,332 KB
testcase_17 AC 549 ms
54,884 KB
testcase_18 AC 540 ms
55,332 KB
testcase_19 AC 539 ms
55,332 KB
testcase_20 AC 557 ms
55,332 KB
testcase_21 AC 536 ms
55,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
  	alias String ,as: S
    alias Enum ,as: E

    n = S.to_integer(S.trim(IO.gets("")))
    IO.puts(E.reduce(1..n,&(&1 + &2)))
  end
end

0