Code Festival A If you cannot solve this by Naoaki

main(n,a,b,s){while(~scanf("%d %d",&n,&a)){s=a;for(n--;n--;)scanf("%d",&b),s+=2*a-b;s>0?puts("Pass"):puts("Fail");}}

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

download

return to the top page