Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n,a=0,b=0,i=1,c;
- cin>>n;
- while(i<=n)
- {
- cin>>c;
- if(c==100)a++;
- else b++;
- i++;
- }
- if(a>0 && a%2==0 && n>=2)cout<< "YES"<<endl;
- else if(b==n && b%2==0)cout<< "YES"<<endl;
- else cout<< "NO"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment