Code Festival A If you cannot solve this by henkma

m@main=getLine>>=putStrLn.f.map read.words>>m
f(a:b)|a*b!!0*2>sum b="Pass"|0<1="Fail"

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

download

return to the top page