Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
56777 尹翊泽 比较奇偶数个数 C++ Wrong Answer 0 0 MS 252 KB 230 2022-08-03 14:35:58

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int a,b,c,d; int main(){ while(cin>>a){ for(int i=1;i<=a;i++){ cin>>b; if(b%2==1) c++; else d++; } if(d>c) cout<<"NO"; else cout<<"YES"; } return 0; }


Judgement Protocol: