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

运行 ID: 56784

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