Code Festival A If you cannot solve this by yuscarlet

#include<cstdio>
int a,b,s,n;int main(){for(;~scanf("%d",&n);){scanf("%d",&s);for(a=s*n;--n;s+=b)scanf("%d",&b);puts(a+a>s?"Pass":"Fail");}}

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

download

return to the top page