結果

問題 No.677 10^Nの約数
ユーザー wotsushiwotsushi
提出日時 2018-07-23 22:04:06
言語 Elixir
(1.16.2)
結果
AC  
実行時間 550 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 1,111 ms
コンパイル使用メモリ 62,556 KB
実行使用メモリ 54,420 KB
最終ジャッジ日時 2024-06-09 22:03:06
合計ジャッジ時間 12,230 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 522 ms
53,924 KB
testcase_01 AC 527 ms
54,256 KB
testcase_02 AC 529 ms
54,312 KB
testcase_03 AC 530 ms
53,720 KB
testcase_04 AC 522 ms
53,932 KB
testcase_05 AC 537 ms
54,300 KB
testcase_06 AC 526 ms
54,188 KB
testcase_07 AC 536 ms
54,180 KB
testcase_08 AC 550 ms
54,052 KB
testcase_09 AC 533 ms
53,944 KB
testcase_10 AC 531 ms
54,136 KB
testcase_11 AC 530 ms
54,412 KB
testcase_12 AC 532 ms
54,324 KB
testcase_13 AC 524 ms
54,316 KB
testcase_14 AC 533 ms
53,812 KB
testcase_15 AC 536 ms
53,892 KB
testcase_16 AC 525 ms
53,808 KB
testcase_17 AC 527 ms
54,052 KB
testcase_18 AC 541 ms
54,420 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