Code Festival A If you cannot solve this by chocobi

i,j,a,s;main(n){for(;~scanf("%d%d",&n,&a);puts(a>s/n/2?"Pass":"Fail"))for(i=n,s=a;--i;s+=j)scanf("%d",&j);}

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

download

return to the top page