diff --git a/Codechef/WATMELON.cpp b/Codechef/WATMELON.cpp new file mode 100644 index 0000000..8e0fc13 --- /dev/null +++ b/Codechef/WATMELON.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; + +int main() { + // your code goes here + int t,i; + cin>>t; + while(t--) + { + int n,x; + int sum=0; + cin>>n; + for(i=0;i>x; + sum+=x; + } + if(sum>=0) + cout<<"YES\n"; + else + cout<<"NO\n"; + } + return 0; +}