jakaria_hossain

codeforce - Kitahara Haruki's Gift

Jun 25th, 2019
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int n,a=0,b=0,i=1,c;
  6. cin>>n;
  7. while(i<=n)
  8. {
  9. cin>>c;
  10. if(c==100)a++;
  11. else b++;
  12. i++;
  13. }
  14. if(a>0 && a%2==0 && n>=2)cout<< "YES"<<endl;
  15. else if(b==n && b%2==0)cout<< "YES"<<endl;
  16. else cout<< "NO"<<endl;
  17. }
RAW Paste Data