提交时间:2022-08-03 14:39:09
运行 ID: 56785
#include<bits/stdc++.h> using namespace std; int a,b,c,d; int main(){ while(cin>>a){ for(int i=1;i<=a;i++){ cin>>b; if(b%2==1) c++; else d++; } if(d>c) cout<<"NO"; else if(d==c) cout<<"YES"; else cout<<"YES"; } return 0; }