Code Festival A If you cannot solve this by negi_magnet

#include<iostream>
using namespace std;main(){int n,a,b,s,i;while(cin>>n){s=0;i=1;cin>>s;b=s;while(i++<n){cin>>a;s+=a;}cout<<(s<2*n*b?"Pass\n":"Fail\n");}}

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

download

return to the top page