Here’s my ruby code:
gets.to_i.times do
puts (gets.split.map {|x| x.reverse.to_i}).sum.to_s.reverse.to_i
end
I have no clue why it isn’t working.
When I am writing the input in my terminal, even if I press enter where I am not supposed to, the code doesn’t raise any error!