p $<.map{|e|e.split.map &:to_f}.transpose.map{|e|e.sort.tap{|x,y|y-x}}.reduce :+