| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56757 | 张文熙 | 比较奇偶数个数 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 217 | 2022-08-03 14:30:51 |
#include<bits/stdc++.h> using namespace std; int n,a,ji,ou; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a; if(a%2==0) ou++; else ji++; } if(ou>ji) cout<<"NO"; else cout<<"YES"; return 0; }