Code Festival A If you cannot solve this by Fleur

awk '{for(;$2;NF--)s+=$NF-2*$2}$0=s=s<0?"Pass":"Fail"'

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

download

return to the top page