提交时间:2022-08-03 14:37:37

运行 ID: 56782

#include<bits/stdc++.h> using namespace std; int n,t,q,o; int main(){ while(cin>>n){ for(int i=1;i<=n;i++){ cin>>t; if(t%2==0) o++; else q++; } if(o>q) cout<<"NO"<<endl; else cout<<"YES"<<endl; } return 0; }