結果

問題 No.677 10^Nの約数
ユーザー wotsushiwotsushi
提出日時 2018-07-23 22:04:06
言語 Elixir
(1.16.2)
結果
AC  
実行時間 674 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 1,021 ms
コンパイル使用メモリ 54,748 KB
実行使用メモリ 50,668 KB
最終ジャッジ日時 2023-08-29 22:46:23
合計ジャッジ時間 15,080 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
50,268 KB
testcase_01 AC 609 ms
49,368 KB
testcase_02 AC 638 ms
49,920 KB
testcase_03 AC 642 ms
49,496 KB
testcase_04 AC 674 ms
50,652 KB
testcase_05 AC 649 ms
50,052 KB
testcase_06 AC 654 ms
49,464 KB
testcase_07 AC 653 ms
50,228 KB
testcase_08 AC 647 ms
50,668 KB
testcase_09 AC 637 ms
50,172 KB
testcase_10 AC 644 ms
50,060 KB
testcase_11 AC 648 ms
49,692 KB
testcase_12 AC 642 ms
49,640 KB
testcase_13 AC 649 ms
49,488 KB
testcase_14 AC 655 ms
49,512 KB
testcase_15 AC 652 ms
49,584 KB
testcase_16 AC 642 ms
50,192 KB
testcase_17 AC 632 ms
49,476 KB
testcase_18 AC 645 ms
50,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    n = IO.gets("") |> String.trim |> String.to_integer

    ans =
      (for i <- 0..n, j <- 0..n, do: :math.pow(2, i) * :math.pow(5, j) |> round)
      |> Enum.sort

    IO.puts Enum.join(ans, "\n")
  end
end
0