10 lines
221 B
Elixir
10 lines
221 B
Elixir
# input treatment
|
|
input = IO.gets("input?")
|
|
|> String.trim
|
|
|> String.split(" ")
|
|
|> Enum.map(fn part ->
|
|
String.to_integer part
|
|
end)
|
|
|
|
res = Enum.sum(input)
|
|
IO.puts "answer: #{res}"
|