| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56876 | 张浩然 | 比较奇偶数个数 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 231 | 2022-08-03 15:42:10 |
#include <bits/stdc++.h> using namespace std; int n,k,j,t; int main(){ while(cin>>n){ for(int i=1;i<=n;i++){ cin>>t; if(t%2==0) k++; else j++; } if(k>j) cout<<"NO"; else cout<<"YES"; } return 0; }