Created
September 21, 2022 14:16
-
-
Save uxjp/e54d0d0526718e393867f7dcc6bc2b0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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