結果

問題 No.701 ひとりしりとり
ユーザー wotsushiwotsushi
提出日時 2018-07-26 21:34:24
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 1,138 ms
コンパイル使用メモリ 54,932 KB
実行使用メモリ 157,372 KB
最終ジャッジ日時 2023-08-29 22:47:11
合計ジャッジ時間 15,744 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

    ans =
      (for a <- 0..25, b <- 0..25, c <- 0..25, d<- 0..25,
        do: "a#{List.to_string([a + 97, b + 97, c + 97, d + 97])}a")
      |> Enum.take(n)

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