提交时间:2022-08-03 14:36:13
运行 ID: 56779
#include<bits/stdc++.h> using namespace std; int n,a[100010],j,o; int main(){ while(cin>>n){ for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]%2==0) o++; else j++; } if(o>j) cout<<"YES"<<endl; else cout<<"NO"<<endl; } return 0; }