IQ Test by nanayaT

while a=$stdin.gets;b=$stdin.gets;c=a.split(" ");d=b.split(" ");g=[];c.zip(d){|e,f|g<<e+f};puts "#{g.drop(1).index(g.first)+1} #{g.first}";end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top