Code Festival A If you cannot solve this by ixmel

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

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

download

return to the top page