Code Festival A If you cannot solve this by yasuhiroki

#!ruby -anpl
a,*b=$F.map(&:to_i)
$_=b[0]>b.inject(:+)/a/2?"Pass":"Fail"

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

download

return to the top page