| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56830 | 张浩然 | 比较奇偶数个数 | C++ | Output Limit Exceeded | 0 | 2 MS | 252 KB | 209 | 2022-08-03 15:06:36 |
#include<bits/stdc++.h> using namespace std; int n,a,x,y; int main(){ while(cin>>n){ a=0; cin>>a; if(a%2==0) x++; if(a%2!=0) y++; if(x>y) cout<<"NO"; else cout<<"YES"; } return 0; }