Skip to content

Instantly share code, notes, and snippets.

@uxjp
Created September 21, 2022 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uxjp/e54d0d0526718e393867f7dcc6bc2b0f to your computer and use it in GitHub Desktop.
Save uxjp/e54d0d0526718e393867f7dcc6bc2b0f to your computer and use it in GitHub Desktop.
defmodule Solution do
[head | tail] = IO.read(:all) |> String.split
nTimes = head |> String.to_integer
tail
|> Enum.each(
fn x -> Range.new(1, nTimes)
|> Enum.each(fn _ -> IO.puts(x)
end)
end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment