提交时间:2022-08-03 14:25:09
运行 ID: 56752
#include<bits/stdc++.h> using namespace std; int main() { int n,x; while(cin>>n){ int ji=0,ou=0; for(int 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; }