#include<iostream> using namespace std;main(){int n,a,b,c;for(;cin>>n>>a;){c=a;a*=n*2;for(;--n;)cin>>b,c+=b;cout<<(c<a?"Pass":"Fail")<<'\n';}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page