Code Festival A If you cannot solve this by kazu0x17

main(n){while(scanf("%d",&n)!=-1){int i,s[n],a=0;for(i=0;i<n;i++){scanf("%d",s+i);a+=s[i];}a/=2*n;s[0]>a?printf("Pass\n"):printf("Fail\n");}}

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

download

return to the top page