提交时间:2022-08-03 15:06:36

运行 ID: 56830

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