| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57099 | 朱宸瑜 | 比较奇偶数个数 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 255 | 2022-08-03 18:48:21 |
#include<iostream> using namespace std; int n,ns; int main(){ while(cin>>n){ int jishu=0,oushu=0; while(n--){ cin>>ns; if(ns%2==0) oushu++; else jishu++; } if(oushu>jishu) cout<<"NO"; else cout<<"YES"; } return 0; }