提交时间:2022-08-03 15:42:29

运行 ID: 56877

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