Code Festival A If you cannot solve this by zeosutt

n,s,c;main(t){for(;~scanf("%d",&t);s-=t,c++-n||puts(s>0?"Pass":"Fail",c=0))!c?n=t:c<2?s=2*n*t:0;}

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

download

return to the top page