| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56864 | 张浩然 | 比较奇偶数个数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 236 | 2022-08-03 15:30:33 |
#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; }