提交时间:2022-08-03 14:06:49

运行 ID: 56751

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