Code Festival A If you cannot solve this by arrows

#include <bits/stdc++.h>
main(){int N,n,a,b,c;while(std::cin>>N>>a){n=N;c=a;while(--N){std::cin>>b;c+=b;}puts(a>c/n/2?"Pass":"Fail");}}

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

download

return to the top page