Code Festival A If you cannot solve this by hirokazu1020

while s=gets
a=s.split.map(&:to_i);puts a[1]*2*a[0]<=a.reduce(:+)-a[0]?"Fail":"Pass" end

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

download

return to the top page