提交时间:2022-08-05 16:00:52
运行 ID: 57389
#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; }