| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56779 | 安一宸 | 比较奇偶数个数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 257 | 2022-08-03 14:36:13 |
#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; }