提交时间:2022-08-03 15:30:33

运行 ID: 56864

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