Content deleted Content added
→Ruby version: New implementation in same spirit but with more idiomatic Ruby, removed sentence about not repeating overflow values, since it is not discussed elsewhere in the article. |
m →Ruby version: Used sqrt and abs per other implementations. |
||
Line 65:
Array.new(11) { gets.to_i }.reverse.each do |x|
begin
y =
raise if y > 400
puts "#{x} #{y}"
|