結果

問題 No.646 逆ピラミッド
ユーザー gemmarogemmaro
提出日時 2020-04-12 08:25:10
言語 Elixir
(1.16.2)
結果
AC  
実行時間 624 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 1,066 ms
コンパイル使用メモリ 55,496 KB
実行使用メモリ 50,268 KB
最終ジャッジ日時 2023-08-30 00:07:36
合計ジャッジ時間 8,515 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 619 ms
49,352 KB
testcase_01 AC 612 ms
49,988 KB
testcase_02 AC 616 ms
49,348 KB
testcase_03 AC 610 ms
49,152 KB
testcase_04 AC 614 ms
49,460 KB
testcase_05 AC 613 ms
49,240 KB
testcase_06 AC 618 ms
49,276 KB
testcase_07 AC 624 ms
49,500 KB
testcase_08 AC 617 ms
50,268 KB
testcase_09 AC 611 ms
49,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    n =
      IO.read(:line)
      |> String.trim()
      |> String.to_integer()

    0..(n - 1)
    |> Enum.map(fn i ->
      0..(n - i - 1)
      |> Enum.map(fn _ -> n end)
      |> Enum.join()
    end)
    |> Enum.join("\n")
    |> IO.puts()
  end
end
0