Code Festival A If you cannot solve this by ciel

puts$<.map{|e|n,*a=e.split.map &:to_i;n*2*a[0]>a.reduce(:+)?:Pass: :Fail}

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

download

return to the top page