| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56756 | 邢逸轩 | 比较奇偶数个数 | C++ | Accepted | 100 | 0 MS | 256 KB | 204 | 2022-08-03 14:30:20 |
#include<bits/stdc++.h> using namespace std; int a,n,j,o; int main(){ while(cin>>n){ while(n--){ cin>>a; if(a%2) j++; else o++; } cout<<(o>j?"NO":"YES")<<endl; } return 0; }